@zintrust/db-mysql 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 +36 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @zintrust/db-mysql
2
+
3
+ MySQL / MariaDB database adapter package for Zintrust (uses `mysql2`).
4
+
5
+ ## Install
6
+
7
+ Recommended:
8
+
9
+ ```bash
10
+ zin add db:mysql
11
+ ```
12
+
13
+ Or install directly:
14
+
15
+ ```bash
16
+ npm i @zintrust/db-mysql mysql2
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ Register the adapter at startup:
22
+
23
+ ```ts
24
+ import '@zintrust/db-mysql/register';
25
+ ```
26
+
27
+ Then select the adapter in your config/env (the registered driver key is `mysql`):
28
+
29
+ ```env
30
+ DB_CONNECTION=mysql
31
+ ```
32
+
33
+ ## Docs
34
+
35
+ - https://zintrust.com/adapters
36
+ - https://zintrust.com/database-advanced
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/db-mysql",
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"