Documentation
¶
Index ¶
- Constants
- func GetCloudSQLConnectionString(dbUsername, dbPassword, unixSocketPath string) string
- func GetSchemaName(isTesting bool) string
- func NewCloudsqlPostgresDatabase(conf config.Config) (*sqlx.DB, error)
- func NewDatabaseMigrator(db *sqlx.DB, logger *slog.Logger) *migrator
- func NewPostgresDatabase(connectionString string) (*sqlx.DB, error)
Constants ¶
View Source
const DB_NAME = "flashlight"
View Source
const LOCAL_CONNECTION_STRING = "user=postgres password=postgres dbname=flashlight sslmode=disable"
View Source
const MAIN_SCHEMA = "flashlight"
View Source
const TESTING_SCHEMA = "flashlight_test"
Variables ¶
This section is empty.
Functions ¶
func GetSchemaName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.