Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBProvider ¶
func NewPGXProvider ¶ added in v1.0.0
func NewPGXProvider(db *pgxpool.Pool) DBProvider[PGX]
func NewStdSQLProvider ¶ added in v1.0.0
func NewStdSQLProvider(db *sql.DB) DBProvider[StdSQL]
type IsolationLevel ¶
type IsolationLevel int
const ( LevelDefault IsolationLevel = iota LevelReadUncommitted LevelReadCommitted LevelWriteCommitted LevelRepeatableRead LevelSnapshot LevelSerializable LevelLinearizable )
type Option ¶
type Option func(cfg *config)
func WithDefaultRetrier ¶ added in v1.0.0
func WithDefaultRetrier() Option
func WithRetrier ¶ added in v1.0.0
type StdSQL ¶ added in v1.0.0
type StdSQL interface {
ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
Commit() error
Rollback() error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.