@syncular/dialect-d1 0.0.1-98 → 0.0.2-126
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 +31 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @syncular/dialect-d1
|
|
2
|
+
|
|
3
|
+
Cloudflare D1 Kysely dialect with JSON serialization support via `SerializePlugin`.
|
|
4
|
+
|
|
5
|
+
Pair with `@syncular/server-dialect-sqlite` when running a Syncular server on a SQLite-compatible backend.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @syncular/dialect-d1
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { createD1Db } from '@syncular/dialect-d1';
|
|
17
|
+
|
|
18
|
+
const db = createD1Db<MyDb>(env.DB);
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Documentation
|
|
22
|
+
|
|
23
|
+
- Dialect selection: https://syncular.dev/docs/introduction/installation#client-database-dialects
|
|
24
|
+
- Cloudflare adapter: https://syncular.dev/docs/server/cloudflare-adapter
|
|
25
|
+
|
|
26
|
+
## Links
|
|
27
|
+
|
|
28
|
+
- GitHub: https://github.com/syncular/syncular
|
|
29
|
+
- Issues: https://github.com/syncular/syncular/issues
|
|
30
|
+
|
|
31
|
+
> Status: Alpha. APIs may change between releases.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/dialect-d1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-126",
|
|
4
4
|
"description": "Cloudflare D1 dialect for the Syncular client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@cloudflare/workers-types": "*",
|
|
47
|
-
"@syncular/core": "0.0.
|
|
47
|
+
"@syncular/core": "0.0.2-126",
|
|
48
48
|
"kysely-d1": "^0.4.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|