Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SQLite DB usage
// Configure a SQLite database
let sqlite = try SQLiteDatabase(storage: .memory)
/// Register the configured SQLite database to the database config.
var databases = DatabasesConfig()
databases.add(database: sqlite, as: .sqlite)
/// Configure migrations
var migrations = MigrationConfig()
migrations.add(model: User.self, database: .sqlite)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment