package
0.0.0-20240907131704-d5a64f8ccb77
Repository: https://github.com/robinhoodarmyhq/robin-api.git
Documentation: pkg.go.dev
# Functions
Connect will open a connection to the database.
ConnectionMaxLifetime sets the maximum amount of time a connection may be reused.
Debug enables or disables the debug level for database With debug=on, all queries are logged.
Host sets the hostname to be used while calling NewConnection, default localhost.
MaxIdleConnections sets the maximum number of connections that can remain idle default 20
https://golang.org/pkg/database/sql/#DB.SetMaxIdleConns.
MaxOpenConnections sets the max number of connections that can be made to the database default 100
https://golang.org/pkg/database/sql/#DB.SetMaxOpenConns.
NewConnection returns a new database connection, use option functions to configure connection properties.
Password sets the password to be used for the connection while calling NewConnection.
Port sets the port to connect while calling NewConnection, defaults to 3306.
Schema sets the database name while calling NewConnection.
User sets the username to be used for the connection while calling NewConnection.