Documentation
¶
Index ¶
- func AddData(dbConn *models.DBConnection, schemaName string, name string, ...) (*models.AddDataResponse, error)
- func AddSingleDataModelField(dbConn *models.DBConnection, schemaName string, name string, ...) (map[string]interface{}, error)
- func AddSingleDataModelIndex(dbConn *models.DBConnection, schemaName, name, indexName string, ...) (map[string]interface{}, error)
- func DeleteData(dbConn *models.DBConnection, schemaName string, name string, ids []string, ...) (map[string]interface{}, error)
- func DeleteSingleDataModelField(dbConn *models.DBConnection, schemaName string, name string, fieldName string, ...) (map[string]interface{}, error)
- func DeleteSingleDataModelIndex(dbConn *models.DBConnection, schemaName, name, indexName string, ...) (map[string]interface{}, error)
- func GetData(dbConn *models.DBConnection, schemaName string, name string, limit int, ...) (map[string]interface{}, error)
- func GetDataModels(dbConn *models.DBConnection, config *models.QueryConfig) ([]*models.DBDataModel, error)
- func GetSingleDataModel(dbConn *models.DBConnection, schemaName string, name string, ...) (*models.DBDataModel, error)
- func Init()
- func RemoveUnusedConnections()
- func RunQuery(dbConn *models.DBConnection, query string, config *models.QueryConfig) (map[string]interface{}, error)
- func TestConnection(dbConn *models.DBConnection, config *models.QueryConfig) bool
- func UpdateSingleData(dbConn *models.DBConnection, schemaName string, name string, id string, ...) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddData ¶
func AddData(dbConn *models.DBConnection, schemaName string, name string, data map[string]interface{}, config *models.QueryConfig) (*models.AddDataResponse, error)
func AddSingleDataModelField ¶
func AddSingleDataModelField(dbConn *models.DBConnection, schemaName string, name string, fieldName, datatype string, config *models.QueryConfig) (map[string]interface{}, error)
func AddSingleDataModelIndex ¶
func AddSingleDataModelIndex(dbConn *models.DBConnection, schemaName, name, indexName string, fieldNames []string, isUnique bool, config *models.QueryConfig) (map[string]interface{}, error)
func DeleteData ¶
func DeleteData(dbConn *models.DBConnection, schemaName string, name string, ids []string, config *models.QueryConfig) (map[string]interface{}, error)
DeleteData function to delete multiple rows in the database ids is a list of unique row ids: ctid for postgres, _id for mongo
func DeleteSingleDataModelField ¶
func DeleteSingleDataModelField(dbConn *models.DBConnection, schemaName string, name string, fieldName string, config *models.QueryConfig) (map[string]interface{}, error)
func DeleteSingleDataModelIndex ¶
func DeleteSingleDataModelIndex(dbConn *models.DBConnection, schemaName, name, indexName string, config *models.QueryConfig) (map[string]interface{}, error)
func GetDataModels ¶
func GetDataModels(dbConn *models.DBConnection, config *models.QueryConfig) ([]*models.DBDataModel, error)
func GetSingleDataModel ¶
func GetSingleDataModel(dbConn *models.DBConnection, schemaName string, name string, config *models.QueryConfig) (*models.DBDataModel, error)
func RemoveUnusedConnections ¶
func RemoveUnusedConnections()
func RunQuery ¶
func RunQuery(dbConn *models.DBConnection, query string, config *models.QueryConfig) (map[string]interface{}, error)
func TestConnection ¶
func TestConnection(dbConn *models.DBConnection, config *models.QueryConfig) bool
func UpdateSingleData ¶
func UpdateSingleData(dbConn *models.DBConnection, schemaName string, name string, id string, columnName, value string, config *models.QueryConfig) (map[string]interface{}, error)
UpdateSingleData function to update single data row in the database id is a unique row ids: ctid for postgres, _id for mongo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.