Documentation ¶
Index ¶
- Constants
- func AddTables(ctx context.Context, conn *pgxpool.Pool, model *metamodel.Model, ...) ([]*metamodel.StructType, error)
- func BuildConnURI(pgCfg *dconfig.Postgres) (string, error)
- func Connect(ctx context.Context, pgCfg *dconfig.Postgres, pgxLogger pgx.Logger) (*pgx.Conn, error)
- func ConnectPool(ctx context.Context, pgCfg *dconfig.Postgres, pgxLogger pgx.Logger) (*pgxpool.Pool, error)
- func CreateDB(ctx context.Context, pgCfg *dconfig.Postgres, pgxLogger pgx.Logger) (err error)
- func DropDB(ctx context.Context, pgCfg *dconfig.Postgres, pgxLogger pgx.Logger) (err error)
- func ExecSingle(ctx context.Context, querier pgxtype.Querier, sql string, args ...any) error
- func PatchField(buf *bytes.Buffer, args []any, arg any, name string) []any
- func QuerySingle(ctx context.Context, querier pgxtype.Querier, sql string, args []any, ...) error
- type PgxLoggerWrapper
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ConnectPool ¶
func ExecSingle ¶
Types ¶
type PgxLoggerWrapper ¶
type PgxLoggerWrapper struct {
// contains filtered or unexported fields
}
func NewPgxLoggerWrapper ¶
func NewPgxLoggerWrapper(logger dlog.Logger) PgxLoggerWrapper
Click to show internal directories.
Click to hide internal directories.