metal-orm 1.0.34 → 1.0.36
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 +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -10
- package/dist/index.d.ts +15 -10
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/decorators/bootstrap.ts +3 -3
- package/src/decorators/column.ts +3 -1
- package/src/orm/entity-metadata.ts +16 -9
- package/src/orm/entity.ts +7 -4
- package/src/schema/column.ts +216 -214
- package/src/schema/types.ts +10 -8
package/README.md
CHANGED
|
@@ -60,6 +60,7 @@ Full docs live in the `docs/` folder:
|
|
|
60
60
|
### Level 1 – Query builder & hydration
|
|
61
61
|
|
|
62
62
|
- **Declarative schema definition** with `defineTable`, `col.*`, and typed relations.
|
|
63
|
+
- **Typed temporal columns**: `col.date()` / `col.datetime()` / `col.timestamp()` default to `string` but accept a generic when your driver returns `Date` (e.g. `col.date<Date>()`).
|
|
63
64
|
- **Fluent query builder** over a real SQL AST
|
|
64
65
|
(`SelectQueryBuilder`, `InsertQueryBuilder`, `UpdateQueryBuilder`, `DeleteQueryBuilder`).
|
|
65
66
|
- **Advanced SQL**: CTEs, aggregates, window functions, subqueries, JSON, CASE, EXISTS.
|
package/dist/index.cjs
CHANGED
|
@@ -7781,6 +7781,7 @@ var normalizeColumnInput = (input) => {
|
|
|
7781
7781
|
args: asOptions.args ?? asDefinition.args,
|
|
7782
7782
|
notNull: asOptions.notNull ?? asDefinition.notNull,
|
|
7783
7783
|
primary: asOptions.primary ?? asDefinition.primary,
|
|
7784
|
+
tsType: asDefinition.tsType ?? asOptions.tsType,
|
|
7784
7785
|
unique: asDefinition.unique,
|
|
7785
7786
|
default: asDefinition.default,
|
|
7786
7787
|
autoIncrement: asDefinition.autoIncrement,
|