queryengines

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

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 GetData

func GetData(dbConn *models.DBConnection, schemaName string, name string, limit int, offset int64, fetchCount bool, filter []string, sort []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 Init

func Init()

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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