Documentation
¶
Index ¶
- func CurrentSchemaVersion(ctx context.Context, db *sql.DB) (int64, error)
- func EnforceForwardOnly(ctx context.Context, db *sql.DB, newVersion int64) error
- func EnsureSchemaVersionTable(ctx context.Context, db *sql.DB) error
- func Open(cfg Config) (*sql.DB, error)
- func UpdateSchemaVersion(ctx context.Context, db *sql.DB, newVersion int64) error
- func WithTx(ctx context.Context, db *sql.DB, opts TxOptions, fn TxFunc) error
- func WithTxDefault(ctx context.Context, db *sql.DB, fn TxFunc) error
- type Config
- type TxFunc
- type TxOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentSchemaVersion ¶
func EnforceForwardOnly ¶
func UpdateSchemaVersion ¶
Types ¶
type TxOptions ¶
type TxOptions struct {
Isolation sql.IsolationLevel
ReadOnly bool
}
Click to show internal directories.
Click to hide internal directories.