@elizaos/plugin-sql 1.7.1-alpha.1 → 1.7.1-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.browser.js +6 -8
- package/dist/browser/index.browser.js.map +5 -5
- package/dist/browser/tsconfig.build.tsbuildinfo +1 -1
- package/dist/node/index.node.js +138 -134
- package/dist/node/index.node.js.map +9 -9
- package/dist/node/tsconfig.build.node.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -20029,11 +20029,8 @@ class RuntimeMigrator {
|
|
|
20029
20029
|
} else {
|
|
20030
20030
|
logger5.debug({ src: "plugin:sql" }, "Development database detected, skipping advisory locks");
|
|
20031
20031
|
}
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
"fuzzystrmatch",
|
|
20035
|
-
"pgcrypto"
|
|
20036
|
-
]);
|
|
20032
|
+
const extensions = isRealPostgres ? ["vector", "fuzzystrmatch", "pgcrypto"] : ["vector", "fuzzystrmatch"];
|
|
20033
|
+
await this.extensionManager.installRequiredExtensions(extensions);
|
|
20037
20034
|
const currentSnapshot = await generateSnapshot(schema);
|
|
20038
20035
|
await this.ensureSchemasExist(currentSnapshot);
|
|
20039
20036
|
this.validateSchemaUsage(pluginName, currentSnapshot);
|
|
@@ -23783,8 +23780,9 @@ class PgliteDatabaseAdapter extends BaseDrizzleAdapter {
|
|
|
23783
23780
|
}
|
|
23784
23781
|
async withDatabase(operation) {
|
|
23785
23782
|
if (this.manager.isShuttingDown()) {
|
|
23786
|
-
|
|
23787
|
-
|
|
23783
|
+
const error = new Error("Database is shutting down - operation rejected");
|
|
23784
|
+
logger10.warn({ src: "plugin:sql", error: error.message }, "Database operation rejected during shutdown");
|
|
23785
|
+
throw error;
|
|
23788
23786
|
}
|
|
23789
23787
|
return operation();
|
|
23790
23788
|
}
|
|
@@ -23879,5 +23877,5 @@ export {
|
|
|
23879
23877
|
DatabaseMigrationService
|
|
23880
23878
|
};
|
|
23881
23879
|
|
|
23882
|
-
//# debugId=
|
|
23880
|
+
//# debugId=CA093B7C2C54758864756E2164756E21
|
|
23883
23881
|
//# sourceMappingURL=index.browser.js.map
|