diff --git a/src/client.js b/src/client.js index 0b2567d..23834a2 100644 --- a/src/client.js +++ b/src/client.js @@ -55,9 +55,10 @@ module.exports = class Client extends FrameworkClient { this.prisma = new PrismaClient(); if (process.env.DB_PROVIDER === 'sqlite') { this.prisma.$use(sqliteMiddleware); - // make sqlite faster (https://www.sqlite.org/wal.html), + // make sqlite faster, // and the missing parentheses are not a mistake, `$queryRaw` is a tagged template literal - this.log.debug(await this.prisma.$queryRaw`PRAGMA journal_mode=WAL;`); + this.log.debug(await this.prisma.$queryRaw`PRAGMA journal_mode=WAL;`); // https://www.sqlite.org/wal.html + this.log.debug(await this.prisma.$queryRaw`PRAGMA synchronous=normal;`); // https://www.sqlite.org/pragma.html#pragma_synchronous } this.keyv = new Keyv(); return super.login(token);