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 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,