@mantiq/database 0.1.2 → 0.1.4
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 -2
- package/package.json +4 -4
- package/src/orm/Model.ts +4 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Query builder, Eloquent-style ORM, schema migrations, seeders, and factories for MantiqJS. Supports SQLite, Postgres, MySQL, and MongoDB.
|
|
4
4
|
|
|
5
|
-
Part of [MantiqJS](https://github.com/
|
|
5
|
+
Part of [MantiqJS](https://github.com/mantiqjs/mantiq) — a batteries-included TypeScript web framework for Bun.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ bun add @mantiq/database
|
|
|
12
12
|
|
|
13
13
|
## Documentation
|
|
14
14
|
|
|
15
|
-
See the [MantiqJS repository](https://github.com/
|
|
15
|
+
See the [MantiqJS repository](https://github.com/mantiqjs/mantiq) for full documentation.
|
|
16
16
|
|
|
17
17
|
## License
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantiq/database",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Query builder, ORM, migrations, seeders, factories — with SQLite, Postgres, MySQL and MongoDB support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Abdullah Khan",
|
|
8
|
-
"homepage": "https://github.com/
|
|
8
|
+
"homepage": "https://github.com/mantiqjs/mantiq/tree/main/packages/database",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "https://github.com/mantiqjs/mantiq.git",
|
|
12
12
|
"directory": "packages/database"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/mantiqjs/mantiq/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"mantiq",
|
package/src/orm/Model.ts
CHANGED
|
@@ -416,6 +416,10 @@ export abstract class Model {
|
|
|
416
416
|
return this.toObject()
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
+
[Symbol.for('nodejs.util.inspect.custom')](): Record<string, any> {
|
|
420
|
+
return this.toObject()
|
|
421
|
+
}
|
|
422
|
+
|
|
419
423
|
// ── Persistence ────────────────────────────────────────────────────────────
|
|
420
424
|
|
|
421
425
|
/**
|