@antelopejs/interface-database-decorators 0.2.0 → 0.2.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/interface-database-decorators",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "AntelopeJS decorators for database tables and typed data models, with encrypted, hashed and localized fields",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"@antelopejs/interface-api": "^0.0.15",
|
|
147
147
|
"@antelopejs/interface-core": "^0.4.0",
|
|
148
148
|
"@antelopejs/interface-database": "^0.3.0",
|
|
149
|
-
"@antelopejs/tooling-configs": "^0.
|
|
149
|
+
"@antelopejs/tooling-configs": "^0.3.1",
|
|
150
150
|
"@types/chai": "^4.3.20",
|
|
151
151
|
"@types/mocha": "^10.0.10",
|
|
152
152
|
"@types/node": "^22.19.15",
|
|
@@ -144,7 +144,7 @@ class Chef extends Table.with(
|
|
|
144
144
|
to the whole group.
|
|
145
145
|
- `@Fixture` data is only inserted by `RegisterSchema` when the table is empty (count === 0).
|
|
146
146
|
- `GetModel` caches by model class + instanceId; the same pair always returns the same instance.
|
|
147
|
-
- `RegisterSchema` binds each registered table class to the `Schema` it builds; call it in the module that declares the tables. `User.table()`, `User.table(instanceId)` and `User.table(db)` then return the class's AQL table, and `GetModel` builds `BasicDataModel` models on that same schema, even when another module (bound to another database) calls them. An unbound class
|
|
147
|
+
- `RegisterSchema` binds each registered table class to the `Schema` it builds; call it in the module that declares the tables. `User.table()`, `User.table(instanceId)` and `User.table(db)` then return the class's AQL table, and `GetModel` builds `BasicDataModel` models on that same schema, even when another module (bound to another database) calls them. An unbound class whose schema name has a schema uses that schema; one whose schema name has none throws `<Class> is not bound to a schema`.
|
|
148
148
|
- Serialization of modified instances to plain JSON goes through `toPlainData` (auto-attached as `toJSON`).
|
|
149
149
|
|
|
150
150
|
Deeper reference: this package's `docs/` chapters — Introduction, Table Definitions, Table Modifiers,
|