Documentation ¶ Index ¶ func InitSQLiteDB(dbPath string) (*gorm.DB, error) func MigrateDB(sqldb *sql.DB, migrationFS embed.FS, migrationPath string) error func MigrateServerSpecificDB(sqldb *sql.DB, migrationFS embed.FS, migrationPath string, tablePrefix string) error func SQLiteDSN(dbPath string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func InitSQLiteDB ¶ func InitSQLiteDB(dbPath string) (*gorm.DB, error) func MigrateDB ¶ func MigrateDB(sqldb *sql.DB, migrationFS embed.FS, migrationPath string) error func MigrateServerSpecificDB ¶ func MigrateServerSpecificDB(sqldb *sql.DB, migrationFS embed.FS, migrationPath string, tablePrefix string) error func SQLiteDSN ¶ func SQLiteDSN(dbPath string) string SQLiteDSN builds a SQLite connection string with the project's standard connection parameters. This centralizes DSN construction so callers don't duplicate query parameters as ad-hoc string literals. Types ¶ This section is empty. Source Files ¶ View all Source files utils.go Click to show internal directories. Click to hide internal directories.