Documentation
¶
Index ¶
Constants ¶
View Source
const SQLiteInitFile = "db/sqlite_init.sql"
SQLiteInitFile is the path to the SQLite schema initialization SQL file.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dialect ¶
type Dialect string
Dialect represents the database engine type.
func DetectDialect ¶
DetectDialect determines the database dialect and DSN from environment variables. If DATABASE_URL is set, PostgreSQL is used. Otherwise, SQLite is used as the default.
Click to show internal directories.
Click to hide internal directories.