Documentation
¶
Overview ¶
Package db provides database connectivity and operations
Index ¶
Constants ¶
View Source
const ( // DefaultHost is the default database host DefaultHost = "localhost" // DefaultPort is the default database port DefaultPort = 5432 // DefaultUser is the default database user DefaultUser = "postgres" // DefaultPassword is the default database password DefaultPassword = "postgres" // DefaultDBName is the default database name DefaultDBName = "postgres" DefaultSSLEnabled = false )
Database configuration constants
Variables ¶
This section is empty.
Functions ¶
func IsDuplicateKeyError ¶
IsDuplicateKeyError checks if the given error is a PostgreSQL duplicate key error
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package models contains database models and related utility functions
|
Package models contains database models and related utility functions |
|
Package repos provides repository implementations for database operations
|
Package repos provides repository implementations for database operations |
Click to show internal directories.
Click to hide internal directories.