Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
GetConnection return connection pool from postgres drive PGX
func RunMigrations ¶
func RunMigrations()
Types ¶
type PoolInterface ¶
type PoolInterface interface { Close() Exec(ctx context.Context, sql string, arguments ...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 QueryFunc( ctx context.Context, sql string, args []interface{}, scans []interface{}, f func(pgx.QueryFuncRow) error, ) (pgconn.CommandTag, error) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults Begin(ctx context.Context) (pgx.Tx, error) BeginFunc(ctx context.Context, f func(pgx.Tx) error) error BeginTxFunc(ctx context.Context, txOptions pgx.TxOptions, f func(pgx.Tx) error) error }
Click to show internal directories.
Click to hide internal directories.