Documentation ¶
Index ¶
- type MySQL
- func (d *MySQL) Close() error
- func (d *MySQL) Count(val uint64) int
- func (d *MySQL) Create() error
- func (d *MySQL) Current() (uint64, error)
- func (d *MySQL) Delete(val uint64) error
- func (d *MySQL) Drop() error
- func (d *MySQL) Exec(query string, args ...interface{}) (sql.Result, error)
- func (d *MySQL) Ext() string
- func (d *MySQL) Insert(val uint64) error
- func (d *MySQL) Migrate(m *core.Migration) error
- func (d *MySQL) Open(dsn string) error
- func (d *MySQL) Transaction(fn func(*sql.Tx) error) error
- func (d *MySQL) Version() core.Version
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
}
MySQL driver object.
func (*MySQL) Exec ¶
Exec executes a query without returning any rows. The args are for any placeholder parameters in the query.
func (*MySQL) Ext ¶
Ext returns the sql file extension used by path. The extension is the suffix beginning at the final dot in the final element of path; it is empty if there is no dot.
func (*MySQL) Open ¶
Open is the first function to be called. Check the dsn string and open and verify any connection that has to be made.
func (*MySQL) Transaction ¶
Transaction starts a db transaction. The isolation level is dependent on the driver.
Click to show internal directories.
Click to hide internal directories.