@zintrust/db-d1 0.1.8 → 0.1.16

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.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @zintrust/db-d1
2
+
3
+ Cloudflare D1 database adapter package for Zintrust.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i @zintrust/db-d1
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Register the adapter at startup:
14
+
15
+ ```ts
16
+ import '@zintrust/db-d1/register';
17
+ ```
18
+
19
+ Then select the adapter in your config/env (the registered driver key is `d1`).
20
+
21
+ Note: D1 is a Cloudflare Workers binding (not a TCP database). You typically use this inside a Worker with a D1 binding (commonly named `DB`).
22
+
23
+ ## Docs
24
+
25
+ - https://zintrust.com/cloudflare
26
+ - https://zintrust.com/adapters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/db-d1",
3
- "version": "0.1.8",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "node": ">=20.0.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@zintrust/core": "^0.1.8"
25
+ "@zintrust/core": "^0.1.16"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"