Documentation
¶
Index ¶
- type Config
- type Connection
- type Driver
- func (dr *Driver) Close() error
- func (db *Driver) DropColumn(table, column string) error
- func (db *Driver) DropTable(table string) error
- func (d *Driver) GetDatabaseConfig() *goe.DatabaseConfig
- func (dr *Driver) Init() error
- func (dr *Driver) KeywordHandler(s string) string
- func (db *Driver) MigrateContext(ctx context.Context, migrator *goe.Migrator) error
- func (dr *Driver) Name() string
- func (dr *Driver) NewConnection() goe.Connection
- func (dr *Driver) NewTransaction(ctx context.Context, opts *sql.TxOptions) (goe.Transaction, error)
- func (db *Driver) RenameColumn(table, oldColumn, newColumn string) error
- func (dr *Driver) Stats() sql.DBStats
- type Row
- type Rows
- 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) (goe.Rows, error)
- func (t Transaction) QueryRowContext(ctx context.Context, query *model.Query) goe.Row
- func (t Transaction) Rollback() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
goe.DatabaseConfig
}
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (Connection) ExecContext ¶
func (Connection) QueryContext ¶
func (Connection) QueryRowContext ¶
type Driver ¶
type Driver struct { Config // contains filtered or unexported fields }
func (*Driver) DropColumn ¶
func (*Driver) GetDatabaseConfig ¶ added in v0.2.0
func (d *Driver) GetDatabaseConfig() *goe.DatabaseConfig
func (*Driver) KeywordHandler ¶
func (*Driver) MigrateContext ¶
func (*Driver) NewConnection ¶
func (dr *Driver) NewConnection() goe.Connection
func (*Driver) NewTransaction ¶
func (*Driver) RenameColumn ¶
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.