node-persist icon indicating copy to clipboard operation
node-persist copied to clipboard

Node.js ORM framework supporting MySQL and SQLite 3 relational databases.

Results 39 node-persist issues
Sort by recently updated
recently updated
newest added

I have use the quick start code ``` javascript var persist = require("persist"); var type = persist.type; // define some model objects test = persist.define('test', { 'col_str' : type.STRING });...

Would it be possible to enhance the validate call from Connection to also accept a list of errors? Also, create a new error object named ValidationError to replace the Error...

Hello, I don't know how to resolve with your ORM this MySql sentence (I'm using your ORM to connect to SQLITE and MySQL) UPDATE ON KEY EXISTS to do this,...

Trace returns the generated query as: ``` plaintext select t0.processor_code AS c0, t0.processor_type_code AS c1, t0.processor AS c2, t0.year AS c3, t0.address AS c4, t0.city AS c5, t0.state AS c6,...

While saving associations this SQL is generated for oracle: INSERT INTO amg_user_interest ("amg_user_id","interest_id") VALUES (1234602,1) It happens due to escaping of values in driver.js (line 45) that generate " in...

A list of the in built data types and the matching equivalents in various supported databases would be helpful. All the examples and the sample web app use String and...

If you have say a User which has a property "manager" which references another User you can't get the manager back properly using .include(). When you do User.include("manager").getById(id) for example...

execute connection.runSqlFromFile throw: ``` Uncaught ReferenceError: self is not defined. at /.../node_modules/persist/lib/connection.js:310:9 at /.../node_modules/persist/lib/connection.js:355:16 at fs.js:266:14 at Object.oncomplete (fs.js:107:15) ```

Or move 'beforeSave' trigger before validation

I have one table _employee_ have one foreign key with other table _department_, and the table column and data below: For _empoyee_ employee_idemployee_namedepartment_id 1Tom Preston-Werner1 2Albert Einstein1 For _department_ department_iddepartment_name...