Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(host string, port string, database string, user string, password string, timezone string) *gorm.DB
Connect to a PostgreSQL database according to the passed parameters. @param host - The database server @param port - The port for the database server @param database - The database to use (must be manually created as of 1/14/22). @param user - The user to use for login @param password - The user's password for login @param timezone - The time zone where the program is executed, e.g. America/Chicago. @returns A pointer to the GORM database connection
func VerifyAndUpdateSchema ¶
Verify the current schema contains all the appropriate tables, and if not, create/update them according to the current models. @param db - The active database connection @returns Nothing
Types ¶
This section is empty.