Commit Graph

69 Commits

Author SHA1 Message Date
Anatoliy Chakkaev a8db2ad081 Do not store null values 2012-01-14 00:06:57 +04:00
Anatoliy Chakkaev c3835d089b Fix postgres adapter 2012-01-10 19:43:32 +04:00
Anatoliy Chakkaev 029b020946 Postgresql adapter (buggy) 2012-01-10 17:26:24 +04:00
Anatoliy Chakkaev 0d2b14e2bc Allow constructor to be called without "new" 2012-01-09 16:59:58 +04:00
Anatoliy Chakkaev c457f6ae00 Merge branch 'master' into autoupdate 2011-12-11 15:35:23 +04:00
Anatoliy Chakkaev 71a52b4b50 Fix non-schema data saving 2011-12-11 15:26:24 +04:00
Anatoliy Chakkaev 9357c16607 Allow override sette and getters 2011-12-11 15:01:23 +04:00
Anatoliy Chakkaev 44267a3ebb Remove non-schema properties on reload 2011-12-11 12:58:34 +04:00
Anatoliy Chakkaev 877e30947f Drop and add columns 2011-12-11 11:51:57 +04:00
Anatoliy Chakkaev 155844eae6 Merge branch 'master' into autoupdate 2011-12-09 19:26:48 +04:00
Anatoliy Chakkaev d9567f01e2 Merge branch 'master' of github.com:1602/jugglingdb 2011-12-09 19:26:06 +04:00
Anatoliy Chakkaev 4cb7af139d Automigrade/update 2011-12-09 19:23:29 +04:00
Anatoliy Chakkaev e72db08ad0 Reset changes method 2011-11-28 23:31:01 +07:00
Anatoliy Chakkaev 27af51a0d9 Fix test for updateAttribute 2011-11-27 13:08:40 +07:00
1602 1f7c6a7ea4 Merge pull request #9 from redvulps/master
Updates to the mysql adapter: wrap fieldnames with `
2011-11-26 02:18:24 -08:00
Anatoliy Chakkaev 76a2f9a22c Validation should return undefined in case of async validations 2011-11-26 15:22:36 +07:00
Julien Guimont 001a962606 Some errors in the previous PR 2011-11-25 10:43:50 -05:00
Julien Guimont 3ce01d11b2 Async validations should not trump previous validations. Previous validations should be true as well as async validations 2011-11-25 10:22:35 -05:00
Anatoliy Chakkaev 4d7b813953 Keep dirty state for cached objects 2011-11-23 13:05:11 +07:00
Anatoliy Chakkaev 8b720c30f8 Keep dirty state for cached objects 2011-11-23 12:38:04 +07:00
redvulps 8b67c8d92e Fixed/Improved mysql escaping in the fields names 2011-11-22 20:43:05 -02:00
Anatoliy Chakkaev 12ea5f8478 Use events module 2011-11-22 04:40:50 +07:00
Anatoliy Chakkaev 946853f490 Make all args in .save optional 2011-11-22 04:34:15 +07:00
Anatoliy Chakkaev e4e4a43175 Update attribute + hooks 2011-11-20 15:47:49 +07:00
Anatoliy Chakkaev d7fbf1a575 Tune async validation hooks 2011-11-20 15:26:36 +07:00
Anatoliy Chakkaev c96cf9f248 Async flow for hooks 2011-11-20 12:36:15 +07:00
redvulps f51990949f updated mysql adapter to support boolean definition
updated mysql adapter to treat boolean type fields like in rails, it
means that boolean values will be converted to integer(1 for true and 0
for false) values
2011-11-19 15:16:37 -02:00
redvulps abde0df35b Updated mysql adapter to support fields that have internal names like "key" or "order"
Updated mysql adapter to support fields that have internal names like
"key" or "order"(they will be escaped to "`key`" and "`order`"), also
added support in case of query generates fields like "table.field" that
will be escaped to "`table`.`field`"
2011-11-19 14:40:25 -02:00
Anatoliy Chakkaev 3b2b57eb7b Async validations hooks 2011-11-19 15:58:49 +07:00
Anatoliy Chakkaev fbf118695e Async validations 2011-11-19 12:43:02 +07:00
Anatoliy Chakkaev 9dcd976546 Rewrite custom validation 2011-11-19 01:59:46 +07:00
Anatoliy Chakkaev e55b29e479 Pass instance as callback second arg when validation fails 2011-11-18 16:00:11 +07:00
Anatoliy Chakkaev 894a924488 Hookable validations without breaking functionality 2011-11-17 14:00:12 +07:00
Anatoliy Chakkaev dd1e54ffec Some coding style fixes 2011-11-17 13:18:39 +07:00
1602 9370a96a2b Merge pull request #3 from juggy/master
Custom validations
2011-11-16 21:50:08 -08:00
Julien Guimont 39bbece115 Added active record style callbacks and hooks. Before and after create, save, update, destroy and after initialization. 2011-11-16 23:28:13 -05:00
Julien Guimont fa9676779b Add the ability to create custom validation on fields 2011-11-16 22:37:43 -05:00
Anatoliy Chakkaev 13bfb1c972 Save where conds 2011-11-14 15:46:48 +07:00
Anatoliy Chakkaev 11171a7c7d Run schema callback on nextTick 2011-11-13 15:05:50 +07:00
Anatoliy Chakkaev 2e1cb45f01 Fix NaN-NaN... in dates 2011-11-12 19:04:07 +07:00
Anatoliy Chakkaev fc99247390 Logging in mysql and redis 2011-11-11 20:16:09 +07:00
Justinas Stankevičius 9c0f069c27 bugfix: class is a reserved word in V8 / node 0.6 2011-11-08 20:00:44 +02:00
Anatoliy Chakkaev 683833b220 Accept non-url format in mongoose adapter 2011-11-05 17:16:34 +07:00
Anatoliy Chakkaev 9f9aa7cd3f Run callbacks on schema ready 2011-11-05 16:55:11 +07:00
Anatoliy Chakkaev b5985e445d Move conditions to `where` section, fix neo4j 2011-11-04 14:30:25 +07:00
Anatoliy Chakkaev 775b6b8b1c Neo4j cypher query support 2011-10-23 23:45:44 +04:00
Anatoliy Chakkaev f251ac9a5b Mysql 2011-10-23 23:43:53 +04:00
Anatoliy Chakkaev 8b6c608c6c Ability to transparently close connection with database 2011-10-21 16:46:09 +04:00
Anatoliy Chakkaev 182f3ff12e Tune indexes in redis 2011-10-19 21:17:48 +04:00
Anatoliy Chakkaev 35dd198f70 Only save to database attributes that listed in schema 2011-10-19 00:36:03 +04:00