# Functions
No description provided by the author
No description provided by the author
GetEntityColumns receives a POINTER on entity (NOT A VALUE), parses is using reflection and returns a slice of columns for db/sql Query() method purpose for retrieving data from result rows.
New is constructor of CommonDBConnector.
WithMaxConnectionIdleTime sets maximum connection idle time (without usage) before closure in database connections pool.
WithMaxConnectionLifetime sets maximum connection lifetime before closure in database connections pool.
WithMaxIdleConnections sets maximum idle connections in database connections pool.
WithMaxOpenConnections sets maximum opened connections in database connections pool.
WithTransactionIsolationLevel sets transaction isolation level for database transaction.
WithTransactionReadOnly sets readOnly attribute for database transaction.
# Structs
CommonDBConnector is base connector to work with database.
Config is a database config, on base of which new connector is created.
NilDBConnectionError is an error, representing not being able to connect to database and create a connection pool.
No description provided by the author
# Interfaces
Connector interface is created for usage in external application according to "dependency inversion principle" of SOLID due to working via abstractions.
# Type aliases
PoolOption represents golang functional option pattern func for connections pool settings.
TransactionOption represents golang functional option pattern func for transaction settings.