metal-orm 1.0.98 → 1.0.100
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 +724 -720
- package/dist/index.cjs +45 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -3
- package/dist/index.d.ts +26 -3
- package/dist/index.js +45 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/dialect/base/sql-dialect.ts +6 -2
- package/src/core/dialect/postgres/index.ts +60 -52
- package/src/orm/orm-session.ts +609 -562
- package/src/orm/save-graph-types.ts +56 -49
- package/src/orm/save-graph.ts +431 -405
- package/src/query-builder/select.ts +4 -4
|
@@ -755,10 +755,10 @@ export class SelectQueryBuilder<T = EntityInstance<TableDef>, TTable extends Tab
|
|
|
755
755
|
* // rows is EntityInstance<UserTable>[] (plain objects)
|
|
756
756
|
* rows[0] instanceof User; // false
|
|
757
757
|
*/
|
|
758
|
-
async executePlain(ctx: OrmSession): Promise<
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
758
|
+
async executePlain(ctx: OrmSession): Promise<T[]> {
|
|
759
|
+
const builder = this.ensureDefaultSelection();
|
|
760
|
+
const rows = await executeHydratedPlain(ctx, builder);
|
|
761
|
+
return rows as T[];
|
|
762
762
|
}
|
|
763
763
|
|
|
764
764
|
/**
|