package
3.2.0
Repository: https://github.com/space307/go-utils.git
Documentation: pkg.go.dev

# Functions

BuildMySQLDSN returns MySQL connect string for given config.
BuildPostgresDSN returns Postgres connect string for given config.
Init creates a storage object based on a given config.
InitDatabase creates a mysql storage object based on a given config.
IsErrorDuplicateKey check if given error is duplicate key error.
StoreBatch uploads multiple values in one request.

# Variables

ErrNotInitialized this error happen when try to do some work on not initialized database.
ErrReconBan this error happen when try to reconnect less then cReconnectBanTime interval.
ErrReconInProcess this error happen when other process do reconnect now.

# Structs

Config is a struct representing the data needed to connect to a database server.
Database is a object extended standard sql.Db structure for override methods with implement reconnect logic.
TxConnection is wrapper for transaction with connection link for reset autocommit state after finish transaction.

# Interfaces

Executor is an object capable of execution of SQL statements.