@effect/sql-sqlite-wasm 4.0.0-beta.67 → 4.0.0-beta.68
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/OpfsWorker.d.ts +1 -1
- package/dist/OpfsWorker.js +1 -1
- package/dist/SqliteClient.d.ts +4 -4
- package/dist/SqliteClient.js +3 -3
- package/dist/SqliteMigrator.d.ts +2 -2
- package/dist/SqliteMigrator.js +2 -2
- package/package.json +3 -3
- package/src/OpfsWorker.ts +1 -1
- package/src/SqliteClient.ts +4 -4
- package/src/SqliteMigrator.ts +2 -2
package/dist/OpfsWorker.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface OpfsWorkerConfig {
|
|
|
13
13
|
/**
|
|
14
14
|
* Runs the SQLite OPFS worker loop, opening the configured database, posting a ready message, handling query/import/export/update-hook messages, and closing when a close message is received.
|
|
15
15
|
*
|
|
16
|
-
* @category
|
|
16
|
+
* @category constructors
|
|
17
17
|
* @since 4.0.0
|
|
18
18
|
*/
|
|
19
19
|
export declare const run: (options: OpfsWorkerConfig) => Effect.Effect<void, SqlError>;
|
package/dist/OpfsWorker.js
CHANGED
|
@@ -34,7 +34,7 @@ const classifyError = (cause, message, operation) => classifySqliteError(cause,
|
|
|
34
34
|
/**
|
|
35
35
|
* Runs the SQLite OPFS worker loop, opening the configured database, posting a ready message, handling query/import/export/update-hook messages, and closing when a close message is received.
|
|
36
36
|
*
|
|
37
|
-
* @category
|
|
37
|
+
* @category constructors
|
|
38
38
|
* @since 4.0.0
|
|
39
39
|
*/
|
|
40
40
|
export const run = options => Effect.gen(function* () {
|
package/dist/SqliteClient.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ import { SqlError } from "effect/unstable/sql/SqlError";
|
|
|
9
9
|
/**
|
|
10
10
|
* Runtime identifier attached to SQLite WASM client values.
|
|
11
11
|
*
|
|
12
|
-
* @category type
|
|
12
|
+
* @category type IDs
|
|
13
13
|
* @since 4.0.0
|
|
14
14
|
*/
|
|
15
15
|
export declare const TypeId: TypeId;
|
|
16
16
|
/**
|
|
17
17
|
* Type-level identifier for SQLite WASM client values.
|
|
18
18
|
*
|
|
19
|
-
* @category type
|
|
19
|
+
* @category type IDs
|
|
20
20
|
* @since 4.0.0
|
|
21
21
|
*/
|
|
22
22
|
export type TypeId = "~@effect/sql-sqlite-wasm/SqliteClient";
|
|
@@ -69,14 +69,14 @@ export interface SqliteClientConfig {
|
|
|
69
69
|
/**
|
|
70
70
|
* Creates a scoped in-memory SQLite WASM client using the memory VFS, serializing access through a semaphore and exposing database `export` and `import` operations.
|
|
71
71
|
*
|
|
72
|
-
* @category
|
|
72
|
+
* @category constructors
|
|
73
73
|
* @since 4.0.0
|
|
74
74
|
*/
|
|
75
75
|
export declare const makeMemory: (options: SqliteClientMemoryConfig) => Effect.Effect<SqliteClient, SqlError, Scope.Scope | Reactivity.Reactivity>;
|
|
76
76
|
/**
|
|
77
77
|
* Creates a scoped worker-backed SQLite WASM client, communicating with the configured worker or message port, restarting the scoped connection on worker errors, and exposing database `export` and `import` operations.
|
|
78
78
|
*
|
|
79
|
-
* @category
|
|
79
|
+
* @category constructors
|
|
80
80
|
* @since 4.0.0
|
|
81
81
|
*/
|
|
82
82
|
export declare const make: (options: SqliteClientConfig) => Effect.Effect<SqliteClient, SqlError, Scope.Scope | Reactivity.Reactivity>;
|
package/dist/SqliteClient.js
CHANGED
|
@@ -55,7 +55,7 @@ const classifyError = (cause, message, operation) => classifySqliteError(cause,
|
|
|
55
55
|
/**
|
|
56
56
|
* Runtime identifier attached to SQLite WASM client values.
|
|
57
57
|
*
|
|
58
|
-
* @category type
|
|
58
|
+
* @category type IDs
|
|
59
59
|
* @since 4.0.0
|
|
60
60
|
*/
|
|
61
61
|
export const TypeId = "~@effect/sql-sqlite-wasm/SqliteClient";
|
|
@@ -72,7 +72,7 @@ const registered = /*#__PURE__*/new Set();
|
|
|
72
72
|
/**
|
|
73
73
|
* Creates a scoped in-memory SQLite WASM client using the memory VFS, serializing access through a semaphore and exposing database `export` and `import` operations.
|
|
74
74
|
*
|
|
75
|
-
* @category
|
|
75
|
+
* @category constructors
|
|
76
76
|
* @since 4.0.0
|
|
77
77
|
*/
|
|
78
78
|
export const makeMemory = options => Effect.gen(function* () {
|
|
@@ -204,7 +204,7 @@ export const makeMemory = options => Effect.gen(function* () {
|
|
|
204
204
|
/**
|
|
205
205
|
* Creates a scoped worker-backed SQLite WASM client, communicating with the configured worker or message port, restarting the scoped connection on worker errors, and exposing database `export` and `import` operations.
|
|
206
206
|
*
|
|
207
|
-
* @category
|
|
207
|
+
* @category constructors
|
|
208
208
|
* @since 4.0.0
|
|
209
209
|
*/
|
|
210
210
|
export const make = options => Effect.gen(function* () {
|
package/dist/SqliteMigrator.d.ts
CHANGED
|
@@ -31,14 +31,14 @@ export * from "effect/unstable/sql/Migrator";
|
|
|
31
31
|
/**
|
|
32
32
|
* Runs SQL migrations for a SQLite WASM database using the shared `Migrator` implementation and the current `SqlClient`.
|
|
33
33
|
*
|
|
34
|
-
* @category
|
|
34
|
+
* @category constructors
|
|
35
35
|
* @since 4.0.0
|
|
36
36
|
*/
|
|
37
37
|
export declare const run: <R>(options: Migrator.MigratorOptions<R>) => Effect.Effect<ReadonlyArray<readonly [id: number, name: string]>, SqlError | Migrator.MigrationError, Client.SqlClient | R>;
|
|
38
38
|
/**
|
|
39
39
|
* Creates a layer that runs the configured SQLite WASM migrations during layer construction and provides no services.
|
|
40
40
|
*
|
|
41
|
-
* @category
|
|
41
|
+
* @category constructors
|
|
42
42
|
* @since 4.0.0
|
|
43
43
|
*/
|
|
44
44
|
export declare const layer: <R>(options: Migrator.MigratorOptions<R>) => Layer.Layer<never, SqlError | Migrator.MigrationError, R | Client.SqlClient>;
|
package/dist/SqliteMigrator.js
CHANGED
|
@@ -7,14 +7,14 @@ export * from "effect/unstable/sql/Migrator";
|
|
|
7
7
|
/**
|
|
8
8
|
* Runs SQL migrations for a SQLite WASM database using the shared `Migrator` implementation and the current `SqlClient`.
|
|
9
9
|
*
|
|
10
|
-
* @category
|
|
10
|
+
* @category constructors
|
|
11
11
|
* @since 4.0.0
|
|
12
12
|
*/
|
|
13
13
|
export const run = /*#__PURE__*/Migrator.make({});
|
|
14
14
|
/**
|
|
15
15
|
* Creates a layer that runs the configured SQLite WASM migrations during layer construction and provides no services.
|
|
16
16
|
*
|
|
17
|
-
* @category
|
|
17
|
+
* @category constructors
|
|
18
18
|
* @since 4.0.0
|
|
19
19
|
*/
|
|
20
20
|
export const layer = options => Layer.effectDiscard(run(options));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/sql-sqlite-wasm",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A SQLite toolkit for Effect",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@effect/wa-sqlite": "^0.2.1",
|
|
47
|
-
"effect": "^4.0.0-beta.
|
|
47
|
+
"effect": "^4.0.0-beta.68"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@effect/wa-sqlite": "^0.1.2",
|
|
51
|
-
"effect": "^4.0.0-beta.
|
|
51
|
+
"effect": "^4.0.0-beta.68"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"codegen": "effect-utils codegen",
|
package/src/OpfsWorker.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface OpfsWorkerConfig {
|
|
|
46
46
|
/**
|
|
47
47
|
* Runs the SQLite OPFS worker loop, opening the configured database, posting a ready message, handling query/import/export/update-hook messages, and closing when a close message is received.
|
|
48
48
|
*
|
|
49
|
-
* @category
|
|
49
|
+
* @category constructors
|
|
50
50
|
* @since 4.0.0
|
|
51
51
|
*/
|
|
52
52
|
export const run = (
|
package/src/SqliteClient.ts
CHANGED
|
@@ -58,7 +58,7 @@ const classifyError = (cause: unknown, message: string, operation: string) =>
|
|
|
58
58
|
/**
|
|
59
59
|
* Runtime identifier attached to SQLite WASM client values.
|
|
60
60
|
*
|
|
61
|
-
* @category type
|
|
61
|
+
* @category type IDs
|
|
62
62
|
* @since 4.0.0
|
|
63
63
|
*/
|
|
64
64
|
export const TypeId: TypeId = "~@effect/sql-sqlite-wasm/SqliteClient"
|
|
@@ -66,7 +66,7 @@ export const TypeId: TypeId = "~@effect/sql-sqlite-wasm/SqliteClient"
|
|
|
66
66
|
/**
|
|
67
67
|
* Type-level identifier for SQLite WASM client values.
|
|
68
68
|
*
|
|
69
|
-
* @category type
|
|
69
|
+
* @category type IDs
|
|
70
70
|
* @since 4.0.0
|
|
71
71
|
*/
|
|
72
72
|
export type TypeId = "~@effect/sql-sqlite-wasm/SqliteClient"
|
|
@@ -140,7 +140,7 @@ const registered = new Set<string>()
|
|
|
140
140
|
/**
|
|
141
141
|
* Creates a scoped in-memory SQLite WASM client using the memory VFS, serializing access through a semaphore and exposing database `export` and `import` operations.
|
|
142
142
|
*
|
|
143
|
-
* @category
|
|
143
|
+
* @category constructors
|
|
144
144
|
* @since 4.0.0
|
|
145
145
|
*/
|
|
146
146
|
export const makeMemory = (
|
|
@@ -305,7 +305,7 @@ export const makeMemory = (
|
|
|
305
305
|
/**
|
|
306
306
|
* Creates a scoped worker-backed SQLite WASM client, communicating with the configured worker or message port, restarting the scoped connection on worker errors, and exposing database `export` and `import` operations.
|
|
307
307
|
*
|
|
308
|
-
* @category
|
|
308
|
+
* @category constructors
|
|
309
309
|
* @since 4.0.0
|
|
310
310
|
*/
|
|
311
311
|
export const make = (
|
package/src/SqliteMigrator.ts
CHANGED
|
@@ -33,7 +33,7 @@ export * from "effect/unstable/sql/Migrator"
|
|
|
33
33
|
/**
|
|
34
34
|
* Runs SQL migrations for a SQLite WASM database using the shared `Migrator` implementation and the current `SqlClient`.
|
|
35
35
|
*
|
|
36
|
-
* @category
|
|
36
|
+
* @category constructors
|
|
37
37
|
* @since 4.0.0
|
|
38
38
|
*/
|
|
39
39
|
export const run: <R>(
|
|
@@ -47,7 +47,7 @@ export const run: <R>(
|
|
|
47
47
|
/**
|
|
48
48
|
* Creates a layer that runs the configured SQLite WASM migrations during layer construction and provides no services.
|
|
49
49
|
*
|
|
50
|
-
* @category
|
|
50
|
+
* @category constructors
|
|
51
51
|
* @since 4.0.0
|
|
52
52
|
*/
|
|
53
53
|
export const layer = <R>(
|