Remove SQLite support

This commit is contained in:
Alex Gleason
2024-09-11 11:08:33 -05:00
parent f76d0af16d
commit dc8d09a9da
28 changed files with 156 additions and 568 deletions

View File

@@ -45,10 +45,10 @@ const DATABASE_URL = Deno.env.get('DATABASE_URL');
if (DATABASE_URL) {
vars.DATABASE_URL = await question('input', 'Database URL', DATABASE_URL);
} else {
const database = await question('list', 'Which database do you want to use?', ['postgres', 'sqlite']);
if (database === 'sqlite') {
const path = await question('input', 'Path to SQLite database', 'data/db.sqlite3');
vars.DATABASE_URL = `sqlite://${path}`;
const database = await question('list', 'Which database do you want to use?', ['postgres', 'pglite']);
if (database === 'pglite') {
const path = await question('input', 'Path to PGlite data directory', 'data/pgdata');
vars.DATABASE_URL = `file://${path}`;
}
if (database === 'postgres') {
const host = await question('input', 'Postgres host', 'localhost');