Documentation
¶
Index ¶
- type MysqlQueryEngine
- func (mqe *MysqlQueryEngine) AddData(dbConn *models.DBConnection, name string, data map[string]interface{}, ...) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) AddSingleDataModelColumn(dbConn *models.DBConnection, name, columnName, dataType string, ...) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) AddSingleDataModelIndex(dbConn *models.DBConnection, name, indexName string, colNames []string, ...) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) DeleteData(dbConn *models.DBConnection, name string, ctids []string, ...) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) DeleteSingleDataModelColumn(dbConn *models.DBConnection, name, columnName string, ...) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) DeleteSingleDataModelIndex(dbConn *models.DBConnection, name, indexName string, ...) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) GetData(dbConn *models.DBConnection, name string, limit int, offset int64, ...) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) GetDataModels(dbConn *models.DBConnection, config *models.QueryConfig) ([]map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) GetSingleDataModelFields(dbConn *models.DBConnection, name string, config *models.QueryConfig) ([]map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) GetSingleDataModelIndexes(dbConn *models.DBConnection, name string, config *models.QueryConfig) ([]map[string]interface{}, error)
- func (myEngine *MysqlQueryEngine) RemoveUnusedConnections()
- func (mqe *MysqlQueryEngine) RunQuery(dbConn *models.DBConnection, query string, config *models.QueryConfig) (map[string]interface{}, error)
- func (mqe *MysqlQueryEngine) TestConnection(dbConn *models.DBConnection, config *models.QueryConfig) bool
- func (mqe *MysqlQueryEngine) UpdateSingleData(dbConn *models.DBConnection, name string, pkey string, columnName string, ...) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlQueryEngine ¶
type MysqlQueryEngine struct {
// contains filtered or unexported fields
}
func InitMysqlQueryEngine ¶
func InitMysqlQueryEngine() *MysqlQueryEngine
func (*MysqlQueryEngine) AddData ¶
func (mqe *MysqlQueryEngine) AddData(dbConn *models.DBConnection, name string, data map[string]interface{}, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) AddSingleDataModelColumn ¶
func (mqe *MysqlQueryEngine) AddSingleDataModelColumn(dbConn *models.DBConnection, name, columnName, dataType string, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) AddSingleDataModelIndex ¶
func (mqe *MysqlQueryEngine) AddSingleDataModelIndex(dbConn *models.DBConnection, name, indexName string, colNames []string, isUnique bool, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) DeleteData ¶
func (mqe *MysqlQueryEngine) DeleteData(dbConn *models.DBConnection, name string, ctids []string, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) DeleteSingleDataModelColumn ¶
func (mqe *MysqlQueryEngine) DeleteSingleDataModelColumn(dbConn *models.DBConnection, name, columnName string, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) DeleteSingleDataModelIndex ¶
func (mqe *MysqlQueryEngine) DeleteSingleDataModelIndex(dbConn *models.DBConnection, name, indexName string, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) GetData ¶
func (mqe *MysqlQueryEngine) GetData(dbConn *models.DBConnection, name string, limit int, offset int64, fetchCount bool, filter []string, sort []string, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) GetDataModels ¶
func (mqe *MysqlQueryEngine) GetDataModels(dbConn *models.DBConnection, config *models.QueryConfig) ([]map[string]interface{}, error)
func (*MysqlQueryEngine) GetSingleDataModelFields ¶
func (mqe *MysqlQueryEngine) GetSingleDataModelFields(dbConn *models.DBConnection, name string, config *models.QueryConfig) ([]map[string]interface{}, error)
func (*MysqlQueryEngine) GetSingleDataModelIndexes ¶
func (mqe *MysqlQueryEngine) GetSingleDataModelIndexes(dbConn *models.DBConnection, name string, config *models.QueryConfig) ([]map[string]interface{}, error)
func (*MysqlQueryEngine) RemoveUnusedConnections ¶
func (myEngine *MysqlQueryEngine) RemoveUnusedConnections()
func (*MysqlQueryEngine) RunQuery ¶
func (mqe *MysqlQueryEngine) RunQuery(dbConn *models.DBConnection, query string, config *models.QueryConfig) (map[string]interface{}, error)
func (*MysqlQueryEngine) TestConnection ¶
func (mqe *MysqlQueryEngine) TestConnection(dbConn *models.DBConnection, config *models.QueryConfig) bool
func (*MysqlQueryEngine) UpdateSingleData ¶
func (mqe *MysqlQueryEngine) UpdateSingleData(dbConn *models.DBConnection, name string, pkey string, columnName string, value string, config *models.QueryConfig) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.