Versions in this module Expand all Collapse all v1 v1.0.0 Dec 13, 2017 Changes in this version + type MysqlAPI struct + func NewMysqlAPI(dbURI string, useInformationSchema bool) (api *MysqlAPI) + func (api *MysqlAPI) Connection() *sql.DB + func (api *MysqlAPI) Create(table string, obj map[string]interface{}) (rs sql.Result, errorMessage *ErrorMessage) + func (api *MysqlAPI) CurrentDatabaseName() string + func (api *MysqlAPI) Delete(table string, id interface{}, obj map[string]interface{}) (rs sql.Result, errorMessage *ErrorMessage) + func (api *MysqlAPI) GetConnectionPool(dbURI string) *sql.DB + func (api *MysqlAPI) GetDatabaseMetadata() *DataBaseMetadata + func (api *MysqlAPI) SQL() *SQL + func (api *MysqlAPI) Select(option QueryOption) (rs []map[string]interface{}, errorMessage *ErrorMessage) + func (api *MysqlAPI) SelectTotalCount(option QueryOption) (totalCount int, errorMessage *ErrorMessage) + func (api *MysqlAPI) Stop() *MysqlAPI + func (api *MysqlAPI) Update(table string, id interface{}, obj map[string]interface{}) (rs sql.Result, errorMessage *ErrorMessage) + func (api *MysqlAPI) UpdateAPIMetadata() adapter.IDatabaseAPI + type SQL struct + func (s *SQL) DeleteByTable(tableName string, mWhere map[string]interface{}) (sql string, err error) + func (s *SQL) DeleteByTableAndId(tableName string, id interface{}) (sql string, err error) + func (s *SQL) GetByTable(opt QueryOption) (sql string, err error) + func (s *SQL) GetByTableAndID(opt QueryOption) (sql string, err error) + func (s *SQL) GetByTableTotalCount(opt QueryOption) (sql string, err error) + func (s *SQL) InsertByTable(tableName string, record map[string]interface{}) (sql string, err error) + func (s *SQL) UpdateByTableAndId(tableName string, id interface{}, record map[string]interface{}) (sql string, err error)