package
0.0.0-20200707133025-6cd7eb24fa2e
Repository: https://github.com/gost/server.git
Documentation: pkg.go.dev
# Functions
CheckDatastreamRelationsExist check if the related entities exist.
ContainsToLower checks a string array, array and given string are set to lower-case.
CreateQueryBuilder instantiates a new queryBuilder, the queryBuilder is used to create select queries based on the given entities, id en QueryOptions (ODATA) schema is the used database schema can be empty, maxTop is the maximum top the query should return.
DeleteEntity deletes a record from database for entity.
EntityExists checks if entity exists in database.
ExecuteSelect executes the select query and creates the retrieved entities.
ExecuteSelectCount runs a given count query and returns the value.
GetCreateDatabaseQuery returns the database creation script for PostgreSQL.
JSONToMap converts a string of json into a map.
NewDatabase initialises the PostgreSQL database host = TCP host:port or Unix socket depending on Network.
ToIntID converts an interface to int id used for the id's in the database.
# Constants
LikeType is a "enumeration" of the Like types, LikeStartsWith = startsWith input%, LikeEndsWith = endsWith %input, LikeContains = contains %input%.
LikeType is a "enumeration" of the Like types, LikeStartsWith = startsWith input%, LikeEndsWith = endsWith %input, LikeContains = contains %input%.
LikeType is a "enumeration" of the Like types, LikeStartsWith = startsWith input%, LikeEndsWith = endsWith %input, LikeContains = contains %input%.
TimeFormat describes the format in which we want our DateTime to display.
# Structs
GostDatabase implementation.
QueryBuilder can construct queries based on entities and QueryOptions.
QueryParseInfo is constructed based on the input send to the QueryBuilder, with the help of QueryParseInfo the response rows from the database can be parsed into the correct entities with their relations and sub entities.
# Type aliases
LikeType describes the type of like.
ParamFactory receives a map of columns (with select as names) with values an implementation should parse it to the correct entity.