@nyffels/mynodeorm
Advanced tools
Comparing version
@@ -21,3 +21,7 @@ import { Factory } from "./factory.models.js"; | ||
this._dbName = targetClass.constructor.name; | ||
const columns = Object.keys(targetClass); | ||
this._columns = {}; | ||
for (const column of Object.keys(targetClass)) { | ||
// @ts-ignore | ||
this._columns[column] = new DatabaseColumn(column); | ||
} | ||
} | ||
@@ -24,0 +28,0 @@ dbName(name) { |
{ | ||
"name": "@nyffels/mynodeorm", | ||
"version": "1.0.0-alpha104", | ||
"version": "1.0.0-alpha105", | ||
"description": "A full-fledged ORM framework for NodeJS and MySQL with develop friendly code aimed to handle database migrations, MySQL Query builder / helper and property mapping.", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
198885
0.14%2696
0.15%