Documentation ¶
Index ¶
- type ConnAdapter
- func (c *ConnAdapter) Begin(ctx context.Context) (pgx.Tx, error)
- func (c *ConnAdapter) Cli() *pgxpool.Pool
- func (c *ConnAdapter) Close() error
- func (c *ConnAdapter) Connect(opt Options) error
- func (c *ConnAdapter) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
- func (c *ConnAdapter) Ping(ctx context.Context) error
- func (c *ConnAdapter) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
- func (c *ConnAdapter) QueryRow(ctx context.Context, sql string, args ...any) QueryRow
- func (c *ConnAdapter) SqQuery(ctx context.Context, query squirrel.SelectBuilder) (pgx.Rows, error)
- func (c *ConnAdapter) SqQueryRow(ctx context.Context, query squirrel.SelectBuilder) QueryRow
- func (c *ConnAdapter) SqUpdate(ctx context.Context, query squirrel.UpdateBuilder) error
- type Options
- type QueryRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnAdapter ¶ added in v0.3.1
type ConnAdapter struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ConnAdapter
func (*ConnAdapter) Begin ¶ added in v0.3.1
func (c *ConnAdapter) Begin(ctx context.Context) (pgx.Tx, error)
func (*ConnAdapter) Cli ¶ added in v0.3.1
func (c *ConnAdapter) Cli() *pgxpool.Pool
func (*ConnAdapter) Close ¶ added in v0.3.1
func (c *ConnAdapter) Close() error
func (*ConnAdapter) Connect ¶ added in v0.3.1
func (c *ConnAdapter) Connect(opt Options) error
func (*ConnAdapter) Exec ¶ added in v0.3.1
func (c *ConnAdapter) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
func (*ConnAdapter) SqQuery ¶ added in v0.3.1
func (c *ConnAdapter) SqQuery(ctx context.Context, query squirrel.SelectBuilder) (pgx.Rows, error)
func (*ConnAdapter) SqQueryRow ¶ added in v0.3.1
func (c *ConnAdapter) SqQueryRow(ctx context.Context, query squirrel.SelectBuilder) QueryRow
func (*ConnAdapter) SqUpdate ¶ added in v0.3.1
func (c *ConnAdapter) SqUpdate(ctx context.Context, query squirrel.UpdateBuilder) error
Click to show internal directories.
Click to hide internal directories.