Documentation
¶
Index ¶
- func NewConfig(c Config) config
- type Config
- type Connection
- type Driver
- func (dr *Driver) AddLogger(logger model.Logger, err error) error
- func (dr *Driver) Close() error
- func (db *Driver) DropColumn(schema, table, column string) error
- func (db *Driver) DropTable(schema, table string) error
- func (dr *Driver) ErrorTranslator() func(err error) error
- func (d *Driver) GetDatabaseConfig() *model.DatabaseConfig
- func (dr *Driver) Init() error
- func (dr *Driver) KeywordHandler(s string) string
- func (db *Driver) MigrateContext(ctx context.Context, migrator *model.Migrator) error
- func (dr *Driver) Name() string
- func (dr *Driver) NewConnection() model.Connection
- func (dr *Driver) NewTransaction(ctx context.Context, opts *sql.TxOptions) (model.Transaction, error)
- func (db *Driver) RenameColumn(schema, table, oldColumn, newColumn string) error
- func (db *Driver) RenameTable(schema, table, newTable string) error
- func (dr *Driver) Stats() sql.DBStats
- type Row
- type Rows
- type SavePoint
- type Transaction
- func (t Transaction) Commit() error
- func (t Transaction) ExecContext(ctx context.Context, query *model.Query) error
- func (t Transaction) QueryContext(ctx context.Context, query *model.Query) (model.Rows, error)
- func (t Transaction) QueryRowContext(ctx context.Context, query *model.Query) model.Row
- func (t Transaction) Rollback() error
- func (t Transaction) SavePoint() (model.SavePoint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (Connection) ExecContext ¶
func (Connection) QueryContext ¶
func (Connection) QueryRowContext ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) DropColumn ¶
func (*Driver) ErrorTranslator ¶
func (*Driver) GetDatabaseConfig ¶
func (d *Driver) GetDatabaseConfig() *model.DatabaseConfig
func (*Driver) KeywordHandler ¶
func (*Driver) MigrateContext ¶
func (*Driver) NewConnection ¶
func (dr *Driver) NewConnection() model.Connection
func (*Driver) NewTransaction ¶
func (*Driver) RenameColumn ¶
func (*Driver) RenameTable ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (Transaction) Commit ¶
func (t Transaction) Commit() error
func (Transaction) ExecContext ¶
func (Transaction) QueryContext ¶
func (Transaction) QueryRowContext ¶
func (Transaction) Rollback ¶
func (t Transaction) Rollback() error
Click to show internal directories.
Click to hide internal directories.