Documentation ¶ Index ¶ type CRDB func New(dbUrl, migrationsUrl string) (*CRDB, error) func (db *CRDB) ExecuteTx(ctx context.Context, txOpts *sql.TxOptions, txFn TxFn) error func (db *CRDB) MigrateDown() error func (db *CRDB) MigrateUp() error type TxFn Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type CRDB ¶ type CRDB struct { *sql.DB *migrate.Migrate } func New ¶ func New(dbUrl, migrationsUrl string) (*CRDB, error) func (*CRDB) ExecuteTx ¶ func (db *CRDB) ExecuteTx(ctx context.Context, txOpts *sql.TxOptions, txFn TxFn) error func (*CRDB) MigrateDown ¶ func (db *CRDB) MigrateDown() error func (*CRDB) MigrateUp ¶ func (db *CRDB) MigrateUp() error type TxFn ¶ type TxFn = func(*sql.Tx) error Source Files ¶ View all Source files cockroachdb.go Click to show internal directories. Click to hide internal directories.