@simplysm/orm-common 13.0.12 → 13.0.13
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 +6 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -123,21 +123,16 @@ await db.connect(async () => {
|
|
|
123
123
|
| `DbContextInstance<TDef>` | Full DbContext instance with queryable accessors and DDL methods |
|
|
124
124
|
| `DbContextBase` | Core interface used internally (status, executeDefs, etc.) |
|
|
125
125
|
|
|
126
|
-
### Class-based API (
|
|
126
|
+
### Class-based API (Removed)
|
|
127
127
|
|
|
128
|
-
The old class-based API
|
|
128
|
+
The old class-based API has been removed. You must migrate to the functional API for better type safety and composability.
|
|
129
129
|
|
|
130
130
|
```typescript
|
|
131
|
-
// Old (
|
|
132
|
-
import { DbContext, queryable } from "@simplysm/orm-common";
|
|
131
|
+
// Old (no longer available):
|
|
132
|
+
// import { DbContext, queryable } from "@simplysm/orm-common";
|
|
133
|
+
// class MyDb extends DbContext { ... } // This is no longer supported
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
readonly user = queryable(this, User);
|
|
136
|
-
readonly migrations = [...];
|
|
137
|
-
}
|
|
138
|
-
const db = new MyDb(executor, { database: "mydb" });
|
|
139
|
-
|
|
140
|
-
// New (recommended):
|
|
135
|
+
// New (required):
|
|
141
136
|
const MyDbDef = defineDbContext({
|
|
142
137
|
tables: { user: User },
|
|
143
138
|
migrations: [...],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/orm-common",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "13.0.
|
|
4
|
+
"version": "13.0.13",
|
|
5
5
|
"description": "심플리즘 패키지 - ORM 모듈 (common)",
|
|
6
6
|
"author": "김석래",
|
|
7
7
|
"repository": {
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"docs"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@simplysm/core-common": "13.0.
|
|
22
|
+
"@simplysm/core-common": "13.0.13"
|
|
23
23
|
}
|
|
24
24
|
}
|