mysqlqueryengine

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL