Mold the things to work with Postgres

This commit is contained in:
Alex Gleason
2024-04-19 20:52:42 -05:00
parent b87a59c521
commit 9ccf6bbea0
14 changed files with 32 additions and 50 deletions

View File

@@ -21,6 +21,9 @@ export class DittoSQLite {
await Promise.all([
sql`PRAGMA synchronous = normal`.execute(this.db),
sql`PRAGMA temp_store = memory`.execute(this.db),
sql`PRAGMA foreign_keys = ON`.execute(this.db),
sql`PRAGMA auto_vacuum = FULL`.execute(this.db),
sql`PRAGMA journal_mode = WAL`.execute(this.db),
sql.raw(`PRAGMA mmap_size = ${Conf.sqlite.mmapSize}`).execute(this.db),
]);
}