Documentation
¶
Overview ¶
Package plpgsql provides some utilities for running PL/pgSQL functions.
Index ¶
- func ExecFn(db *sql.DB, fn string, args []interface{}, dests ...interface{}) error
- func Int64(db *sql.DB, fn string, args ...interface{}) (int64, error)
- func MustOpen(conn string) *sql.DB
- func Open(conn string) (*sql.DB, error)
- func QueryRow(db *sql.DB, fn string, args ...interface{}) (*sql.Rows, error)
- func ScanRow(rows *sql.Rows, dests ...interface{}) error
- func String(db *sql.DB, fn string, args ...interface{}) (string, error)
- func Void(db *sql.DB, fn string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryRow ¶
QueryRow is similar to sql.QueryRow but ignores sql.ErrNoRows and returns errors raised within a PL/pgSQL function.
func ScanRow ¶
ScanRow scans the return values of a PL/pgSQL function into the provided destination arguments.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.