Documentation
¶
Index ¶
- func Exec(pool Pool, ctx iris.Context, query sqrl.Sqlizer) (pgconn.CommandTag, error)
- func ExecWithTimeout(pool Pool, ctx iris.Context, timeout time.Duration, query sqrl.Sqlizer) (pgconn.CommandTag, error)
- func Query(pool Pool, ctx iris.Context, query sqrl.Sqlizer) (pgx.Rows, error)
- func QueryBuilder() sqrl.StatementBuilderType
- func QueryFunc(pool Pool, ctx iris.Context, query sqrl.Sqlizer, fn RowFunction) error
- func QueryFuncWithTimeout(pool Pool, ctx iris.Context, timeout time.Duration, query sqrl.Sqlizer, ...) error
- func QueryRow(pool Pool, ctx iris.Context, query sqrl.Sqlizer) pgx.Row
- func QueryRowWithTimeout(pool Pool, ctx iris.Context, timeout time.Duration, query sqrl.Sqlizer) pgx.Row
- func QueryWithTimeout(pool Pool, ctx iris.Context, timeout time.Duration, query sqrl.Sqlizer) (pgx.Rows, error)
- func UuidArray(array []uuid.UUID) []string
- func ValueByDataType(value, datatype string) (interface{}, error)
- type Datatype
- type Pool
- type RowFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecWithTimeout ¶
func QueryBuilder ¶
func QueryBuilder() sqrl.StatementBuilderType
func QueryFunc ¶
func QueryFunc(pool Pool, ctx iris.Context, query sqrl.Sqlizer, fn RowFunction) error
func QueryFuncWithTimeout ¶
func QueryRowWithTimeout ¶
func QueryWithTimeout ¶
func ValueByDataType ¶
Types ¶
type Pool ¶
type Pool interface { Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row Begin(ctx context.Context) (pgxpool.Tx, error) }
type RowFunction ¶
type RowFunction = func(row pgx.Row) error
Click to show internal directories.
Click to hide internal directories.