Documentation
¶
Index ¶
- type SqlDB
- func (s *SqlDB) BeginTx(ctx context.Context) (*SqlTx, error)
- func (s *SqlDB) Close() error
- func (s *SqlDB) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
- func (s *SqlDB) Ping(ctx context.Context, timeout time.Duration) error
- func (s *SqlDB) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)
- func (s *SqlDB) QueryRow(ctx context.Context, query string, args ...any) pgx.Row
- type SqlTx
- func (t *SqlTx) Commit(ctx context.Context) error
- func (t *SqlTx) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
- func (t *SqlTx) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)
- func (t *SqlTx) QueryRow(ctx context.Context, query string, args ...any) pgx.Row
- func (t *SqlTx) Rollback(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlDB ¶
type SqlDB struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.