@happyvertical/sql 0.102.3 → 0.102.5
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/README.md +26 -0
- package/dist/chunks/{duckdb-LMyfKZGi.js → duckdb-c4vdDzPL.js} +5 -4
- package/dist/chunks/{duckdb-LMyfKZGi.js.map → duckdb-c4vdDzPL.js.map} +1 -1
- package/dist/chunks/duckdb-resources-DBlvosDo.js +44 -0
- package/dist/chunks/duckdb-resources-DBlvosDo.js.map +1 -0
- package/dist/chunks/{postgres-dialect-Bfswr4Vs.js → postgres-dialect-CGv6DxSP.js} +3 -775
- package/dist/chunks/postgres-dialect-CGv6DxSP.js.map +1 -0
- package/dist/chunks/query-RzXJ4B9s.js +353 -0
- package/dist/chunks/query-RzXJ4B9s.js.map +1 -0
- package/dist/chunks/schema-manager-cxsySSDA.js +777 -0
- package/dist/chunks/schema-manager-cxsySSDA.js.map +1 -0
- package/dist/chunks/{sqlite-connection-cache-ChWav9iY.js → sqlite-connection-cache-CYThh9l5.js} +2 -2
- package/dist/chunks/{sqlite-connection-cache-ChWav9iY.js.map → sqlite-connection-cache-CYThh9l5.js.map} +1 -1
- package/dist/chunks/{sqlite-native--z4BnolL.js → sqlite-native-CsJ_BLqN.js} +5 -4
- package/dist/chunks/{sqlite-native--z4BnolL.js.map → sqlite-native-CsJ_BLqN.js.map} +1 -1
- package/dist/chunks/{sqlite-0PMv1va2.js → sqlite-rILMdW7Z.js} +6 -5
- package/dist/chunks/{sqlite-0PMv1va2.js.map → sqlite-rILMdW7Z.js.map} +1 -1
- package/dist/index.d.ts +3 -45
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -238
- package/dist/index.js.map +1 -1
- package/dist/pglite.js +2 -1
- package/dist/pglite.js.map +1 -1
- package/dist/query.d.ts +61 -0
- package/dist/query.d.ts.map +1 -0
- package/dist/query.js +3 -0
- package/package.json +6 -2
- package/dist/chunks/duckdb-resources-Cci6Lo6H.js +0 -156
- package/dist/chunks/duckdb-resources-Cci6Lo6H.js.map +0 -1
- package/dist/chunks/postgres-dialect-Bfswr4Vs.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as wrapDatabaseError, n as buildWhere, o as resolveInsertColumns, r as formatDbError, t as DatabaseSchemaManager } from "./schema-manager-cxsySSDA.js";
|
|
2
|
+
import { o as resolveSchemas } from "./query-RzXJ4B9s.js";
|
|
3
|
+
import { _ as validateColumnNames, c as createTransactionLock, d as validateDatabaseCacheOptions, g as validateColumnName, h as generateCreateIndexStatement, m as generateAddColumnStatement, v as validateIndexName, y as validateTableName } from "./postgres-dialect-CGv6DxSP.js";
|
|
2
4
|
import { t as redactDatabaseUrl } from "./redact-database-url-CfMDvSdy.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as getCachedSqliteDatabase } from "./sqlite-connection-cache-ChWav9iY.js";
|
|
5
|
+
import { t as getCachedSqliteDatabase } from "./sqlite-connection-cache-CYThh9l5.js";
|
|
5
6
|
import { DatabaseError } from "@happyvertical/utils";
|
|
6
7
|
import { execFile } from "node:child_process";
|
|
7
8
|
import { lstat, open, unlink } from "node:fs/promises";
|
|
@@ -1222,7 +1223,7 @@ async function getDatabase(options = {}) {
|
|
|
1222
1223
|
root: secureOptions.root
|
|
1223
1224
|
})));
|
|
1224
1225
|
}
|
|
1225
|
-
if (hasNativeSqliteCapabilities(options)) return (await import("./sqlite-native
|
|
1226
|
+
if (hasNativeSqliteCapabilities(options)) return (await import("./sqlite-native-CsJ_BLqN.js")).getNativeSqliteDatabase(options);
|
|
1226
1227
|
return getCachedSqliteDatabase("libsql", options, () => createDatabase(options, url));
|
|
1227
1228
|
}
|
|
1228
1229
|
async function createDatabase(options, url, clientFactory = () => createLibSQLClient(options)) {
|
|
@@ -2616,4 +2617,4 @@ async function createDatabase(options, url, clientFactory = () => createLibSQLCl
|
|
|
2616
2617
|
//#endregion
|
|
2617
2618
|
export { getDatabase };
|
|
2618
2619
|
|
|
2619
|
-
//# sourceMappingURL=sqlite-
|
|
2620
|
+
//# sourceMappingURL=sqlite-rILMdW7Z.js.map
|