mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-09 15:34:20 +01:00
Remove SQLite support
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user