# Functions
AddConfigNode adds one node configuration to configuration of given group.
AddDefaultConfigGroup adds multiple node configurations to configuration of default group.
AddDefaultConfigNode adds one node configuration to configuration of default group.
ConvertDataForTableRecord is a very important function, which does converting for any data that will be inserted into table as a record.
DataToMapDeep converts `value` to map type recursively(if attribute struct is embedded).
FormatSqlWithArgs binds the arguments to the sql string and returns a complete sql string, just for debugging.
GetConfig retrieves and returns the configuration of given group.
GetDefaultGroup returns the { name of default configuration.
GetInsertOperationByOption returns proper insert option with given parameter `option`.
GetPrimaryKey retrieves and returns primary key field name from given struct.
GetPrimaryKeyCondition returns a new where condition by primary field name.
GetWhereConditionOfStruct returns the where condition sql and arguments by given struct pointer.
Instance returns an instance for DB operations.
IsConfigured checks and returns whether the database configured.
ListItemValues retrieves and returns the elements of all item struct/map with key `key`.
ListItemValuesUnique retrieves and returns the unique elements of all struct/map with key `key`.
New creates and returns an ORM object with global configurations.
Register registers custom database driver to gdb.
SetConfig sets the global configuration for package.
SetConfigGroup sets the configuration for given group.
SetDefaultGroup sets the group name for default configuration.
TXFromCtx retrieves and returns transaction object from context.
WithTX injects given transaction object into context and returns a new context.
# Constants
Default group name.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ConfigNode is configuration for one node.
Core is the base struct for database management.
Counter is the type for update count.
DoInsertOption is the input struct for function DoInsert.
DriverMssql is the driver for SQL server database.
DriverMysql is the driver for mysql database.
DriverOracle is the driver for oracle database.
DriverPgsql is the driver for postgresql database.
DriverSqlite is the driver for sqlite database.
Model is core struct implementing the DAO for ORM.
ModelWhereHolder is the holder for where condition preparing.
Schema is a schema object from which it can then create a Model.
Sql is the sql recording struct.
SqlResult is execution result for sql operations.
Stmt is a prepared statement.
TableField is the struct for table field.
TX is the struct for transaction management.
# Type aliases
ChunkHandler is a function that is used in function Chunk, which handles given Result and error.
Config is the configuration management object.
ConfigGroup is a slice of configuration node for specified named group.
HookEvent hook 事件.
No description provided by the author
No description provided by the author
ModelHandler is a function that handles given Model and returns a new Model that is custom modified.
ModelHookHandler.
No description provided by the author
No description provided by the author
No description provided by the author