@effect/sql-sqlite-react-native 4.0.0-beta.101 → 4.0.0-beta.103
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/SqliteClient.d.ts +3 -3
- package/dist/SqliteClient.js +2 -2
- package/dist/SqliteClient.js.map +1 -1
- package/dist/SqliteMigrator.d.ts +2 -2
- package/dist/SqliteMigrator.js +2 -2
- package/dist/SqliteMigrator.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
- package/src/SqliteClient.ts +3 -3
- package/src/SqliteMigrator.ts +2 -2
package/dist/SqliteClient.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type TypeId = "~@effect/sql-sqlite-react-native/SqliteClient";
|
|
|
22
22
|
/**
|
|
23
23
|
* React Native SQLite client service interface, extending `SqlClient` with its configuration and marking `updateValues` as unsupported for SQLite.
|
|
24
24
|
*
|
|
25
|
-
* @category
|
|
25
|
+
* @category services
|
|
26
26
|
* @since 4.0.0
|
|
27
27
|
*/
|
|
28
28
|
export interface SqliteClient extends Client.SqlClient {
|
|
@@ -60,14 +60,14 @@ export interface SqliteClientConfig {
|
|
|
60
60
|
* Use to switch React Native SQLite query execution to the asynchronous driver
|
|
61
61
|
* API for a scoped effect.
|
|
62
62
|
*
|
|
63
|
-
* @category
|
|
63
|
+
* @category services
|
|
64
64
|
* @since 4.0.0
|
|
65
65
|
*/
|
|
66
66
|
export declare const AsyncQuery: Context.Reference<boolean>;
|
|
67
67
|
/**
|
|
68
68
|
* Runs an effect with `AsyncQuery` enabled, causing React Native SQLite queries in that effect to use the asynchronous driver API.
|
|
69
69
|
*
|
|
70
|
-
* @category
|
|
70
|
+
* @category providing services
|
|
71
71
|
* @since 4.0.0
|
|
72
72
|
*/
|
|
73
73
|
export declare const withAsyncQuery: <R, E, A>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, never>>;
|
package/dist/SqliteClient.js
CHANGED
|
@@ -52,7 +52,7 @@ export const SqliteClient = /*#__PURE__*/Context.Service("@effect/sql-sqlite-rea
|
|
|
52
52
|
* Use to switch React Native SQLite query execution to the asynchronous driver
|
|
53
53
|
* API for a scoped effect.
|
|
54
54
|
*
|
|
55
|
-
* @category
|
|
55
|
+
* @category services
|
|
56
56
|
* @since 4.0.0
|
|
57
57
|
*/
|
|
58
58
|
export const AsyncQuery = /*#__PURE__*/Context.Reference("@effect/sql-sqlite-react-native/Client/asyncQuery", {
|
|
@@ -61,7 +61,7 @@ export const AsyncQuery = /*#__PURE__*/Context.Reference("@effect/sql-sqlite-rea
|
|
|
61
61
|
/**
|
|
62
62
|
* Runs an effect with `AsyncQuery` enabled, causing React Native SQLite queries in that effect to use the asynchronous driver API.
|
|
63
63
|
*
|
|
64
|
-
* @category
|
|
64
|
+
* @category providing services
|
|
65
65
|
* @since 4.0.0
|
|
66
66
|
*/
|
|
67
67
|
export const withAsyncQuery = effect => Effect.provideService(effect, AsyncQuery, true);
|
package/dist/SqliteClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqliteClient.js","names":[
|
|
1
|
+
{"version":3,"file":"SqliteClient.js","names":[],"sources":["../src/SqliteClient.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;AAaA,OAAO,KAAK,MAAM,MAAM,2BAA2B;AACnD,OAAO,KAAK,MAAM,MAAM,eAAe;AACvC,OAAO,KAAK,OAAO,MAAM,gBAAgB;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,SAAS,UAAU,EAAE,QAAQ,QAAQ,iBAAiB;AACtD,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,SAAS,MAAM,kBAAkB;AAC7C,OAAO,KAAK,MAAM,MAAM,eAAe;AACvC,OAAO,KAAK,UAAU,MAAM,uCAAuC;AACnE,OAAO,KAA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AK,CAAC,CAAC","ignoreList":[]}
|
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 React Native SQLite database using the shared `Migrator` implementation and the current `SqlClient`.
|
|
33
33
|
*
|
|
34
|
-
* @category
|
|
34
|
+
* @category running
|
|
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 React Native SQLite migrations during layer construction and provides no services.
|
|
40
40
|
*
|
|
41
|
-
* @category
|
|
41
|
+
* @category layers
|
|
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 React Native SQLite database using the shared `Migrator` implementation and the current `SqlClient`.
|
|
9
9
|
*
|
|
10
|
-
* @category
|
|
10
|
+
* @category running
|
|
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 React Native SQLite migrations during layer construction and provides no services.
|
|
16
16
|
*
|
|
17
|
-
* @category
|
|
17
|
+
* @category layers
|
|
18
18
|
* @since 4.0.0
|
|
19
19
|
*/
|
|
20
20
|
export const layer = options => Layer.effectDiscard(run(options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqliteMigrator.js","names":[
|
|
1
|
+
{"version":3,"file":"SqliteMigrator.js","names":[],"sources":["../src/SqliteMigrator.ts"],"sourcesContent":[null],"mappings":"AAsBA,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,QAAQ,MAAM,8BAA8B;AAIxD;;;AAGA,cAAc,8BAA8B;AAE5C;;;;;;AAMA,OAAO,MAAM,GAAG,gBAMZ,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;AAErB;;;;;;AAMA,OAAO,MAAM,KAAK,GAChB,OAAoC,IAC6C,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC","ignoreList":[]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;AAEA;;;AAGA,OAAO,KAAK,YAAY,MAAM,mBAAmB;AAEjD;;;AAGA,OAAO,KAAK,cAAc,MAAM,qBAAqB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/sql-sqlite-react-native",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.103",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A SQLite toolkit for Effect",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
".": "./dist/index.js",
|
|
30
30
|
"./*": "./dist/*.js",
|
|
31
31
|
"./internal/*": null,
|
|
32
|
+
"./index": null,
|
|
32
33
|
"./*/index": null
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
@@ -44,18 +45,16 @@
|
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@op-engineering/op-sqlite": "17.1.2",
|
|
47
|
-
"effect": "^4.0.0-beta.
|
|
48
|
+
"effect": "^4.0.0-beta.103"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"@op-engineering/op-sqlite": "15.0.4",
|
|
51
|
-
"effect": "^4.0.0-beta.
|
|
52
|
+
"effect": "^4.0.0-beta.103"
|
|
52
53
|
},
|
|
53
54
|
"scripts": {
|
|
54
55
|
"codegen": "effect-utils codegen",
|
|
55
56
|
"build": "tsc -b tsconfig.json && pnpm babel",
|
|
56
57
|
"babel": "babel dist --plugins annotate-pure-calls --out-dir dist --source-maps",
|
|
57
|
-
"check": "tsc -b tsconfig.json"
|
|
58
|
-
"test": "vitest",
|
|
59
|
-
"coverage": "vitest --coverage"
|
|
58
|
+
"check": "tsc -b tsconfig.json"
|
|
60
59
|
}
|
|
61
60
|
}
|
package/src/SqliteClient.ts
CHANGED
|
@@ -51,7 +51,7 @@ export type TypeId = "~@effect/sql-sqlite-react-native/SqliteClient"
|
|
|
51
51
|
/**
|
|
52
52
|
* React Native SQLite client service interface, extending `SqlClient` with its configuration and marking `updateValues` as unsupported for SQLite.
|
|
53
53
|
*
|
|
54
|
-
* @category
|
|
54
|
+
* @category services
|
|
55
55
|
* @since 4.0.0
|
|
56
56
|
*/
|
|
57
57
|
export interface SqliteClient extends Client.SqlClient {
|
|
@@ -93,7 +93,7 @@ export interface SqliteClientConfig {
|
|
|
93
93
|
* Use to switch React Native SQLite query execution to the asynchronous driver
|
|
94
94
|
* API for a scoped effect.
|
|
95
95
|
*
|
|
96
|
-
* @category
|
|
96
|
+
* @category services
|
|
97
97
|
* @since 4.0.0
|
|
98
98
|
*/
|
|
99
99
|
export const AsyncQuery = Context.Reference<boolean>(
|
|
@@ -104,7 +104,7 @@ export const AsyncQuery = Context.Reference<boolean>(
|
|
|
104
104
|
/**
|
|
105
105
|
* Runs an effect with `AsyncQuery` enabled, causing React Native SQLite queries in that effect to use the asynchronous driver API.
|
|
106
106
|
*
|
|
107
|
-
* @category
|
|
107
|
+
* @category providing services
|
|
108
108
|
* @since 4.0.0
|
|
109
109
|
*/
|
|
110
110
|
export const withAsyncQuery = <R, E, A>(effect: Effect.Effect<A, E, R>) =>
|
package/src/SqliteMigrator.ts
CHANGED
|
@@ -33,7 +33,7 @@ export * from "effect/unstable/sql/Migrator"
|
|
|
33
33
|
/**
|
|
34
34
|
* Runs SQL migrations for a React Native SQLite database using the shared `Migrator` implementation and the current `SqlClient`.
|
|
35
35
|
*
|
|
36
|
-
* @category
|
|
36
|
+
* @category running
|
|
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 React Native SQLite migrations during layer construction and provides no services.
|
|
49
49
|
*
|
|
50
|
-
* @category
|
|
50
|
+
* @category layers
|
|
51
51
|
* @since 4.0.0
|
|
52
52
|
*/
|
|
53
53
|
export const layer = <R>(
|