From 90f812fae512e9adc0df36581629cf917551991f Mon Sep 17 00:00:00 2001 From: suyx Date: Wed, 5 Aug 2026 11:25:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(POSTV1-01):=20=E8=AE=A9Worker=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=BE=BF=E6=90=BA=E5=8C=85SQLite=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/worker/src/generation-processor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/worker/src/generation-processor.ts b/apps/worker/src/generation-processor.ts index 5d39b06..91844fa 100644 --- a/apps/worker/src/generation-processor.ts +++ b/apps/worker/src/generation-processor.ts @@ -91,7 +91,8 @@ export class GenerationProcessor { this.clock = input.clock ?? Date.now; this.dataRoot = resolve(input.dataRoot); this.workerId = input.workerId; - this.database = new Database(input.databasePath); + const nativeBinding = process.env.DADA_SQLITE_NATIVE_BINDING; + this.database = new Database(input.databasePath, nativeBinding ? { nativeBinding } : undefined); configureWorkerDatabase(this.database); this.migrate(); this.gatewayBalance = new GatewayBalanceRuntime({ clock: this.clock, database: this.database });