From db78a2ebc8062d6a65cfd0276d01f8b21a34c8ab Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 5 Nov 2022 00:18:03 +0530 Subject: [PATCH] chore: set sqlite charset/encoding to utf8 Signed-off-by: Pranav C --- packages/nocodb/src/lib/db/sql-client/lib/sqlite/SqliteClient.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nocodb/src/lib/db/sql-client/lib/sqlite/SqliteClient.ts b/packages/nocodb/src/lib/db/sql-client/lib/sqlite/SqliteClient.ts index c22416bdd2..61fd49e23f 100644 --- a/packages/nocodb/src/lib/db/sql-client/lib/sqlite/SqliteClient.ts +++ b/packages/nocodb/src/lib/db/sql-client/lib/sqlite/SqliteClient.ts @@ -127,6 +127,7 @@ class SqliteClient extends KnexClient { try { const exists = await promisify(fs.exists)(args.database); + this.connectionConfig.connection.client = this.connectionConfig.connection.client === 'sqlite3' ? 'better-sqlite3' : this.connectionConfig.connection.client; this.connectionConfig.connection.client = this.connectionConfig.connection.client === 'sqlite3' ? 'better-sqlite3' : this.connectionConfig.connection.client;