@flowblade/sqlduck 0.18.0 → 0.18.2
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/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{types-Lenzdtjw.d.mts → types-BIe-pGY0.d.mts} +3 -6
- package/dist/validation/valibot/index.d.mts +7 -7
- package/dist/validation/valibot/index.mjs +1 -1
- package/dist/validation/zod/index.d.mts +5 -7
- package/dist/validation/zod/index.mjs +1 -1
- package/dist/{zod-BFEOtdnz.mjs → zod-BXgMoCLM.mjs} +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as DuckConnectionParams } from "./types-
|
|
1
|
+
import { n as DuckConnectionParams } from "./types-BIe-pGY0.mjs";
|
|
2
2
|
import { DuckDBConnection, DuckDBType } from "@duckdb/node-api";
|
|
3
3
|
import * as _$_logtape_logtape0 from "@logtape/logtape";
|
|
4
4
|
import { Logger } from "@logtape/logtape";
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as duckReservedKeywords } from "./duck-reserved-keywords-B00l2sbi.mjs";
|
|
2
|
-
import { c as duckValidatorsZod, r as assertValidAliasName, s as duckConnectionParamsZodSchema } from "./zod-
|
|
2
|
+
import { c as duckValidatorsZod, r as assertValidAliasName, s as duckConnectionParamsZodSchema } from "./zod-BXgMoCLM.mjs";
|
|
3
3
|
import { BIGINT, BOOLEAN, DOUBLE, DuckDBDataChunk, DuckDBInstanceCache, DuckDBTimestampMillisecondsValue, DuckDBTypeId, ENUM, FLOAT, HUGEINT, INTEGER, SMALLINT, TIMESTAMP, TIMESTAMP_MS, TINYINT, UBIGINT, UHUGEINT, UINTEGER, USMALLINT, UTINYINT, UUID, VARCHAR } from "@duckdb/node-api";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -23,8 +23,7 @@ declare const duckAllConnectionOptionsZodSchema: z.ZodObject<{
|
|
|
23
23
|
GCM: "GCM";
|
|
24
24
|
}>>;
|
|
25
25
|
recoveryMode: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
|
|
27
|
-
READ_WRITE: "READ_WRITE";
|
|
26
|
+
no_wal_writes: "no_wal_writes";
|
|
28
27
|
}>>;
|
|
29
28
|
}, z.core.$strict>;
|
|
30
29
|
declare const duckConnectionParamsZodSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -52,8 +51,7 @@ declare const duckConnectionParamsZodSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
52
51
|
GCM: "GCM";
|
|
53
52
|
}>>;
|
|
54
53
|
recoveryMode: z.ZodOptional<z.ZodEnum<{
|
|
55
|
-
|
|
56
|
-
READ_WRITE: "READ_WRITE";
|
|
54
|
+
no_wal_writes: "no_wal_writes";
|
|
57
55
|
}>>;
|
|
58
56
|
}, z.core.$strict>>;
|
|
59
57
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -82,8 +80,7 @@ declare const duckConnectionParamsZodSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
82
80
|
GCM: "GCM";
|
|
83
81
|
}>>;
|
|
84
82
|
recoveryMode: z.ZodOptional<z.ZodEnum<{
|
|
85
|
-
|
|
86
|
-
READ_WRITE: "READ_WRITE";
|
|
83
|
+
no_wal_writes: "no_wal_writes";
|
|
87
84
|
}>>;
|
|
88
85
|
}, z.core.$strict>>;
|
|
89
86
|
}, z.core.$strict>], "type">;
|
|
@@ -10,7 +10,7 @@ declare const duckAllConnectionOptionsValibotSchema: v.ObjectSchema<{
|
|
|
10
10
|
readonly storageVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.StartsWithAction<string, "v", undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
11
11
|
readonly encryptionKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 8, undefined>]>, undefined>;
|
|
12
12
|
readonly encryptionCipher: v.OptionalSchema<v.PicklistSchema<readonly ["CBC", "CTR", "GCM"], undefined>, undefined>;
|
|
13
|
-
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["
|
|
13
|
+
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["no_wal_writes"], undefined>, undefined>;
|
|
14
14
|
}, undefined>;
|
|
15
15
|
type DuckAllConnectionOptionsValibotSchema = v.InferOutput<typeof duckAllConnectionOptionsValibotSchema>;
|
|
16
16
|
declare const duckConnectionParamsValibotSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -25,7 +25,7 @@ declare const duckConnectionParamsValibotSchema: v.VariantSchema<"type", [v.Obje
|
|
|
25
25
|
readonly storageVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.StartsWithAction<string, "v", undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
26
26
|
readonly encryptionKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 8, undefined>]>, undefined>;
|
|
27
27
|
readonly encryptionCipher: v.OptionalSchema<v.PicklistSchema<readonly ["CBC", "CTR", "GCM"], undefined>, undefined>;
|
|
28
|
-
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["
|
|
28
|
+
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["no_wal_writes"], undefined>, undefined>;
|
|
29
29
|
}, undefined>, undefined>;
|
|
30
30
|
}, undefined>, v.ObjectSchema<{
|
|
31
31
|
readonly type: v.LiteralSchema<"filesystem", undefined>;
|
|
@@ -40,7 +40,7 @@ declare const duckConnectionParamsValibotSchema: v.VariantSchema<"type", [v.Obje
|
|
|
40
40
|
readonly storageVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.StartsWithAction<string, "v", undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
41
41
|
readonly encryptionKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 8, undefined>]>, undefined>;
|
|
42
42
|
readonly encryptionCipher: v.OptionalSchema<v.PicklistSchema<readonly ["CBC", "CTR", "GCM"], undefined>, undefined>;
|
|
43
|
-
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["
|
|
43
|
+
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["no_wal_writes"], undefined>, undefined>;
|
|
44
44
|
}, undefined>, undefined>;
|
|
45
45
|
}, undefined>], undefined>;
|
|
46
46
|
//#endregion
|
|
@@ -57,7 +57,7 @@ declare const duckDsnValibotSchema: v.SchemaWithPipe<readonly [v.StringSchema<un
|
|
|
57
57
|
storageVersion?: string | undefined;
|
|
58
58
|
encryptionKey?: string | undefined;
|
|
59
59
|
encryptionCipher?: "CBC" | "CTR" | "GCM" | undefined;
|
|
60
|
-
recoveryMode?: "
|
|
60
|
+
recoveryMode?: "no_wal_writes" | undefined;
|
|
61
61
|
} | undefined;
|
|
62
62
|
} | {
|
|
63
63
|
type: "filesystem";
|
|
@@ -72,7 +72,7 @@ declare const duckDsnValibotSchema: v.SchemaWithPipe<readonly [v.StringSchema<un
|
|
|
72
72
|
storageVersion?: string | undefined;
|
|
73
73
|
encryptionKey?: string | undefined;
|
|
74
74
|
encryptionCipher?: "CBC" | "CTR" | "GCM" | undefined;
|
|
75
|
-
recoveryMode?: "
|
|
75
|
+
recoveryMode?: "no_wal_writes" | undefined;
|
|
76
76
|
} | undefined;
|
|
77
77
|
}>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
78
78
|
readonly type: v.LiteralSchema<"memory", undefined>;
|
|
@@ -86,7 +86,7 @@ declare const duckDsnValibotSchema: v.SchemaWithPipe<readonly [v.StringSchema<un
|
|
|
86
86
|
readonly storageVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.StartsWithAction<string, "v", undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
87
87
|
readonly encryptionKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 8, undefined>]>, undefined>;
|
|
88
88
|
readonly encryptionCipher: v.OptionalSchema<v.PicklistSchema<readonly ["CBC", "CTR", "GCM"], undefined>, undefined>;
|
|
89
|
-
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["
|
|
89
|
+
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["no_wal_writes"], undefined>, undefined>;
|
|
90
90
|
}, undefined>, undefined>;
|
|
91
91
|
}, undefined>, v.ObjectSchema<{
|
|
92
92
|
readonly type: v.LiteralSchema<"filesystem", undefined>;
|
|
@@ -101,7 +101,7 @@ declare const duckDsnValibotSchema: v.SchemaWithPipe<readonly [v.StringSchema<un
|
|
|
101
101
|
readonly storageVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.StartsWithAction<string, "v", undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
102
102
|
readonly encryptionKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 8, undefined>]>, undefined>;
|
|
103
103
|
readonly encryptionCipher: v.OptionalSchema<v.PicklistSchema<readonly ["CBC", "CTR", "GCM"], undefined>, undefined>;
|
|
104
|
-
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["
|
|
104
|
+
readonly recoveryMode: v.OptionalSchema<v.PicklistSchema<readonly ["no_wal_writes"], undefined>, undefined>;
|
|
105
105
|
}, undefined>, undefined>;
|
|
106
106
|
}, undefined>], undefined>]>;
|
|
107
107
|
//#endregion
|
|
@@ -38,7 +38,7 @@ const duckAllConnectionOptionsValibotSchema = v.object({
|
|
|
38
38
|
storageVersion: v.optional(v.pipe(v.string(), v.startsWith("v"), v.regex(duckStorageVersionRegexp))),
|
|
39
39
|
encryptionKey: v.optional(v.pipe(v.string(), v.minLength(8))),
|
|
40
40
|
encryptionCipher: v.optional(v.picklist(duckConnectionsOptions.encryptionCiphers)),
|
|
41
|
-
recoveryMode: v.optional(v.picklist(duckConnectionsOptions.
|
|
41
|
+
recoveryMode: v.optional(v.picklist(duckConnectionsOptions.recoveryMode))
|
|
42
42
|
});
|
|
43
43
|
const duckConnectionParamsValibotSchema = v.variant("type", [v.object({
|
|
44
44
|
type: v.literal("memory"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as duckAllConnectionOptionsZodSchema, i as DuckTableName, o as duckConnectionParamsZodSchema, r as DuckSchemaName, t as DuckAliasName } from "../../types-
|
|
1
|
+
import { a as duckAllConnectionOptionsZodSchema, i as DuckTableName, o as duckConnectionParamsZodSchema, r as DuckSchemaName, t as DuckAliasName } from "../../types-BIe-pGY0.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/validation/zod/duck-asserts-zod.d.ts
|
|
@@ -19,7 +19,7 @@ declare const duckDsnZodSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
|
19
19
|
storageVersion?: string | undefined;
|
|
20
20
|
encryptionKey?: string | undefined;
|
|
21
21
|
encryptionCipher?: "CBC" | "CTR" | "GCM" | undefined;
|
|
22
|
-
recoveryMode?: "
|
|
22
|
+
recoveryMode?: "no_wal_writes" | undefined;
|
|
23
23
|
} | undefined;
|
|
24
24
|
} | {
|
|
25
25
|
type: "filesystem";
|
|
@@ -34,7 +34,7 @@ declare const duckDsnZodSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
|
34
34
|
storageVersion?: string | undefined;
|
|
35
35
|
encryptionKey?: string | undefined;
|
|
36
36
|
encryptionCipher?: "CBC" | "CTR" | "GCM" | undefined;
|
|
37
|
-
recoveryMode?: "
|
|
37
|
+
recoveryMode?: "no_wal_writes" | undefined;
|
|
38
38
|
} | undefined;
|
|
39
39
|
}, string>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
40
|
type: z.ZodLiteral<"memory">;
|
|
@@ -61,8 +61,7 @@ declare const duckDsnZodSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
|
61
61
|
GCM: "GCM";
|
|
62
62
|
}>>;
|
|
63
63
|
recoveryMode: z.ZodOptional<z.ZodEnum<{
|
|
64
|
-
|
|
65
|
-
READ_WRITE: "READ_WRITE";
|
|
64
|
+
no_wal_writes: "no_wal_writes";
|
|
66
65
|
}>>;
|
|
67
66
|
}, z.core.$strict>>;
|
|
68
67
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -91,8 +90,7 @@ declare const duckDsnZodSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
|
91
90
|
GCM: "GCM";
|
|
92
91
|
}>>;
|
|
93
92
|
recoveryMode: z.ZodOptional<z.ZodEnum<{
|
|
94
|
-
|
|
95
|
-
READ_WRITE: "READ_WRITE";
|
|
93
|
+
no_wal_writes: "no_wal_writes";
|
|
96
94
|
}>>;
|
|
97
95
|
}, z.core.$strict>>;
|
|
98
96
|
}, z.core.$strict>], "type">>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as assertValidTableName, c as duckValidatorsZod, i as assertValidSchemaName, n as duckDsnZodSchema, o as duckAllConnectionOptionsZodSchema, r as assertValidAliasName, s as duckConnectionParamsZodSchema, t as ensureZodTableSchema } from "../../zod-
|
|
1
|
+
import { a as assertValidTableName, c as duckValidatorsZod, i as assertValidSchemaName, n as duckDsnZodSchema, o as duckAllConnectionOptionsZodSchema, r as assertValidAliasName, s as duckConnectionParamsZodSchema, t as ensureZodTableSchema } from "../../zod-BXgMoCLM.mjs";
|
|
2
2
|
export { assertValidAliasName, assertValidSchemaName, assertValidTableName, duckAllConnectionOptionsZodSchema, duckConnectionParamsZodSchema, duckDsnZodSchema, duckValidatorsZod, ensureZodTableSchema };
|
|
@@ -40,7 +40,7 @@ const duckAllConnectionOptionsZodSchema = z.strictObject({
|
|
|
40
40
|
storageVersion: z.optional(z.string().startsWith("v").regex(duckStorageVersionRegexp)),
|
|
41
41
|
encryptionKey: z.optional(z.string().min(8)),
|
|
42
42
|
encryptionCipher: z.optional(z.enum(duckConnectionsOptions.encryptionCiphers)),
|
|
43
|
-
recoveryMode: z.optional(z.enum(duckConnectionsOptions.
|
|
43
|
+
recoveryMode: z.optional(z.enum(duckConnectionsOptions.recoveryMode))
|
|
44
44
|
});
|
|
45
45
|
const duckConnectionParamsZodSchema = z.discriminatedUnion("type", [z.strictObject({
|
|
46
46
|
type: z.literal("memory"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowblade/sqlduck",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@flowblade/core": "^0.2.29",
|
|
60
|
-
"@flowblade/source-duckdb": "^0.20.
|
|
60
|
+
"@flowblade/source-duckdb": "^0.20.9",
|
|
61
61
|
"@flowblade/sql-tag": "^0.3.4",
|
|
62
62
|
"@httpx/assert": "^0.17.1",
|
|
63
63
|
"@httpx/dsn-parser": "^1.9.11",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"zod": "^4.4.3"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@duckdb/node-api": "^1.5.2-r.
|
|
72
|
+
"@duckdb/node-api": "^1.5.2-r.2",
|
|
73
73
|
"valibot": "^1.3.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@belgattitude/eslint-config-bases": "8.15.0",
|
|
82
82
|
"@dotenvx/dotenvx": "1.66.0",
|
|
83
|
-
"@duckdb/node-api": "1.5.2-r.
|
|
83
|
+
"@duckdb/node-api": "1.5.2-r.2",
|
|
84
84
|
"@faker-js/faker": "10.4.0",
|
|
85
85
|
"@flowblade/source-kysely": "^1.4.1",
|
|
86
86
|
"@httpx/assert": "0.17.1",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@testcontainers/mssqlserver": "11.14.0",
|
|
91
91
|
"@total-typescript/ts-reset": "0.6.1",
|
|
92
92
|
"@types/node": "25.8.0",
|
|
93
|
-
"@typescript-eslint/eslint-plugin": "8.59.
|
|
94
|
-
"@typescript-eslint/parser": "8.59.
|
|
95
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "8.59.4",
|
|
94
|
+
"@typescript-eslint/parser": "8.59.4",
|
|
95
|
+
"@typescript/native-preview": "7.0.0-dev.20260517.1",
|
|
96
96
|
"@vitest/coverage-v8": "4.1.6",
|
|
97
97
|
"@vitest/ui": "4.1.6",
|
|
98
98
|
"ansis": "4.3.0",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"tedious": "19.2.1",
|
|
119
119
|
"testcontainers": "11.14.0",
|
|
120
120
|
"tsdown": "0.22.0",
|
|
121
|
-
"tsx": "4.22.
|
|
121
|
+
"tsx": "4.22.1",
|
|
122
122
|
"typedoc": "0.28.19",
|
|
123
123
|
"typedoc-plugin-markdown": "4.11.0",
|
|
124
124
|
"typescript": "6.0.3",
|