Documentation ¶
Index ¶
- type Mysql
- func (m *Mysql) Begin(ctx context.Context) (*sql.Tx, error)
- func (m *Mysql) BeginReadOnly(ctx context.Context) (*sql.Tx, error)
- func (m *Mysql) Close()
- func (m *Mysql) CreateDatabase(ctx context.Context, dbname string) error
- func (m *Mysql) CreateDatabaseIfNotExists(ctx context.Context, dbname string) error
- func (m *Mysql) CreateOrReplaceDatabase(ctx context.Context, dbname string) error
- func (m *Mysql) DropDatabase(ctx context.Context, dbname string) error
- func (m *Mysql) DropDatabaseIfExists(ctx context.Context, dbname string) error
- func (m *Mysql) Ping(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
func (*Mysql) CreateDatabase ¶
func (*Mysql) CreateDatabaseIfNotExists ¶
func (*Mysql) CreateOrReplaceDatabase ¶
func (*Mysql) DropDatabaseIfExists ¶
Click to show internal directories.
Click to hide internal directories.