Documentation
¶
Overview ¶
Package models contains the data models and database access layer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionParams ¶
type ConnectionParams struct {
Host string
Port int
User string
Password string
DBName string
SSLMode string
TimeZone string
}
ConnectionParams holds the parameters for connecting to the database
type DB ¶
DB wraps the database connection and queries
func Connect ¶
func Connect(params ConnectionParams) (*DB, error)
Connect establishes a connection to the database and initializes the global instance
Click to show internal directories.
Click to hide internal directories.