Versions in this module Expand all Collapse all v1 v1.0.0 Dec 17, 2020 Changes in this version + type Connection struct + func New(dsn string, opt *Option) (*Connection, error) + func (c *Connection) Begin() error + func (c *Connection) CloseDB() error + func (c *Connection) Commit() error + func (c *Connection) Delete(stmt string) (int64, error) + func (c *Connection) Exec(stmt string) error + func (c *Connection) ExecDDL(query string, args ...interface{}) error + func (c *Connection) FetchColumns(db, table string) ([][2]string, error) + func (c *Connection) FetchDatabases() ([]string, error) + func (c *Connection) FetchIndexes(db, table string) ([]string, error) + func (c *Connection) FetchSchema(db string) ([][5]string, error) + func (c *Connection) FetchTables(db string) ([]string, error) + func (c *Connection) GeneralLog(v int) error + func (c *Connection) GetBeginTime() time.Time + func (c *Connection) IfTxn() bool + func (c *Connection) Insert(stmt string) (int64, error) + func (c *Connection) Prepare() error + func (c *Connection) ReConnect() error + func (c *Connection) Rollback() error + func (c *Connection) Select(stmt string, args ...interface{}) ([][]*QueryItem, error) + func (c *Connection) SetTiFlashEngine() error + func (c *Connection) ShowDatabases() ([]string, error) + func (c *Connection) Update(stmt string) (int64, error) + type Option struct + EnableTiFlash bool + GeneralLog bool + Log string + Mute bool + Name string + type QueryItem struct + Null bool + ValString string + ValType *sql.ColumnType + func (q *QueryItem) MustSame(q1 *QueryItem) error