# Packages
No description provided by the author
# Functions
Connect will connect to the database, trying until it connects, or the supplied number of attempts have been made to connect.
ConnectTo connects to the specified database given the supplied credentials.
GetDatabaseName will return the database name that was connected to.
GetUsername will return the username that connected to the database.
HandleRollback takes an sql.Tx and an error that occured and attempts to roll it back.
ParseAmountQuery parses a set of queries for a key and returns an SQL string and an array of arguments.
ParseSort will take a string containing a column and direction and return them or an error if the string is invalid.
SetLogger sets a logger on the package that will print messages.
# Constants
EnvKeyDatabase is the postgres database to connect to.
EnvKeyHost is the postgres host (default is "localhost").
EnvKeyPassword is the postgres password.
EnvKeyPort is the postgres port (default is "5432").
EnvKeySSLMode is the postgres ssl mode to use (default is "disable").
EnvKeyUser is the postgres user.