Documentation ¶
Overview ¶
Package postgres contains generic utilities for dealing with Postgres Databases. Directly compatible with AWS RDS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertIntoDatabase ¶
InsertIntoDatabase uses a given DB connection to insert a pointer into a database. Uses the type of the passed pointer to automigrate the schema and insert it into the database.
func OpenPostgresConnection ¶
OpenPostgresConnection opens a postgres connection using the SQL ORM library Gorm. Example connString format: postgresql://localhost:5432/denver_replica?sslmode=disable
func QueryAllFromDatabase ¶
QueryAllFromDatabase uses a given DB connection to query all of type desiredStruct from the database. Expects a slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.