noxium 1.0.9 → 1.0.10
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 +2 -4
- package/dist/drivers/mongo.cjs +417 -417
- package/dist/drivers/mongo.cjs.map +4 -4
- package/dist/drivers/mongo.d.ts +2 -2
- package/dist/drivers/mongo.d.ts.map +1 -1
- package/dist/drivers/mongo.mjs +415 -415
- package/dist/drivers/mongo.mjs.map +4 -4
- package/dist/drivers/sqlite.cjs +3 -3
- package/dist/drivers/sqlite.cjs.map +4 -4
- package/dist/drivers/sqlite.d.ts +1 -1
- package/dist/drivers/sqlite.d.ts.map +1 -1
- package/dist/drivers/sqlite.mjs +3 -3
- package/dist/drivers/sqlite.mjs.map +4 -4
- package/dist/error.cjs +3 -3
- package/dist/error.cjs.map +3 -3
- package/dist/error.d.ts +8 -4
- package/dist/error.d.ts.map +1 -1
- package/dist/error.mjs +3 -3
- package/dist/error.mjs.map +3 -3
- package/dist/noxium.cjs +422 -422
- package/dist/noxium.cjs.map +6 -6
- package/dist/noxium.d.ts +5 -5
- package/dist/noxium.d.ts.map +1 -1
- package/dist/noxium.mjs +423 -423
- package/dist/noxium.mjs.map +6 -6
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Noxium
|
|
2
2
|
|
|
3
|
-
Lightweight, type-safe mini ORM for **Bun** and **TypeScript** that unifies **SQLite (`
|
|
3
|
+
Lightweight, type-safe mini ORM for **Bun** and **TypeScript** that unifies **SQLite (`better-sqlite3`)** and **MongoDB (`Mongoose`)** behind a single declarative schema and query API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **Dual-Driver Support:** Switch seamlessly between `sqlite` (`
|
|
7
|
+
- **Dual-Driver Support:** Switch seamlessly between `sqlite` (`better-sqlite3`) and `mongo` (`mongoose`) from a single configuration object.
|
|
8
8
|
- **Declarative Schema:** Define models, field types (`String`, `Number`, `Boolean`, `Date`, `"ref"`), `required`, `unique`, `default`, `trim`, and `lowercase` in one place.
|
|
9
9
|
- **Full TypeScript Type Safety:** Automatic type inference and IDE autocomplete (`Ctrl + Space`) for required fields on `insert`, unique keys on `findUnique`, and typed query results.
|
|
10
10
|
- **Built-in Relations (`populate`):** Unified relation loading using `.populate()` on MongoDB and automatic `LEFT JOIN` on SQLite.
|
|
@@ -22,8 +22,6 @@ npm install noxium
|
|
|
22
22
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
> **Note:** Make sure [Bun](https://bun.sh/) is installed if you plan to use the built-in `bun:sqlite` driver.
|
|
26
|
-
|
|
27
25
|
## Quick Start
|
|
28
26
|
|
|
29
27
|
### 1. Create Your Configuration File
|