@moriajs/db 0.4.1 → 0.4.2

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @moriajs/db@0.4.1 build C:\Codes\node\2026\github\moriajs\packages\db
2
+ > @moriajs/db@0.4.2 build C:\Codes\node\2026\github\moriajs\packages\db
3
3
  > tsc
4
4
 
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @moriajs/db
2
+
3
+ Database abstraction layer for MoriaJS.
4
+
5
+ ## Features
6
+
7
+ - **Kysely Integration**: Type-safe SQL query builder.
8
+ - **Pongo Support**: Document API for PostgreSQL (JSONB).
9
+ - **Multi-adapter**: Support for PostgreSQL and SQLite.
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { createDatabase } from '@moriajs/db';
15
+
16
+ const db = await createDatabase({
17
+ type: 'postgres',
18
+ url: process.env.DATABASE_URL
19
+ });
20
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moriajs/db",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "MoriaJS database — Kysely adapters with kysely-schema integration",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "@types/better-sqlite3": "^7.6.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@moriajs/core": "0.4.1"
29
+ "@moriajs/core": "0.4.2"
30
30
  },
31
31
  "license": "MIT",
32
32
  "author": "Guntur-D <guntur.d.npm@gmail.com>",