Commit Graph

123 Commits

Author SHA1 Message Date
Amir Jafarian aec678d252 Fix manually 2016-08-22 19:20:12 -04:00
Amir Jafarian aa6d28268b Auto-update by eslint --fix 2016-08-22 15:12:25 -04:00
Miroslav Bajtoš 27c6279d6c fix remaining eslint issues 2016-04-05 15:25:34 +02:00
Miroslav Bajtoš 39e04a1756 eslint --fix 2016-04-05 15:25:34 +02:00
Ryan Graham c467b43c38 Insert copyright headers 2016-04-04 18:14:03 -07:00
Clark Wang ce2b580ccd add a flag to callback of findOrCreate to indicate find or create
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
2014-12-25 22:19:15 +08:00
Raymond Feng b42f7d2498 Remove the disconnect to avoid race condition 2014-03-27 13:56:24 -07:00
Raymond Feng 2b8c1ebaee Reformat the code 2014-01-24 09:09:53 -08:00
Raymond Feng fad6ee5e1d Refactor/cleanup the data source juggler implementation
- Add a ModelDefinition class to encapsulate the model schema handling
- Add a Connector class as the base class for connector implementations
- Optimize attachTo and mixin
- Rename some properties/methods
2013-10-01 22:14:21 -07:00
Raymond Feng 6af4b1ba2f More renames: schema -> dataSource, adapter -> connector 2013-07-23 11:16:43 -07:00
Ritchie Martori 008b406dd7 model.find => model.findById, model.all => model.find 2013-06-24 12:42:58 -07:00
Anatoliy Chakkaev b6fb04ffe1 Removed include test from common 2013-03-27 04:51:31 +04:00
Anatoliy Chakkaev 49be07545a Rewriting tests 2013-03-26 23:33:11 +04:00
Anatoliy Chakkaev d5d07d8806 Make tests importable 2013-03-26 04:41:00 +04:00
Anatoliy Chakkaev 50850d80be Minor test amends 2013-03-25 01:29:07 +04:00
Anatoliy Chakkaev 3d64056c39 Absolute paths in README.md, fixes #208 2013-02-16 23:55:51 +08:00
Anatoliy Chakkaev 27a16dbeae Remove logging 2013-02-10 04:53:53 +08:00
Anatoliy Chakkaev 6e1037f987 Organize test with Log and Dog 2013-02-10 04:53:37 +08:00
Anatoliy Chakkaev 412a46d603 FIxed test for belongsTo 2013-02-10 04:15:43 +08:00
dgsan 497dcc887d Unit test for bug fix related to belongsTo relation.
It declares a Schema, uses memory. If it should be run for ALL DBs it will need to be changed.

Should fail pre cba174b and pass currently.
2013-02-08 10:25:38 -07:00
Anatoliy Chakkaev a5e84c9f32 Update broken test case 2013-01-23 07:48:56 +07:00
Anatoliy Chakkaev c6d7360f51 Update test for #128 2013-01-22 23:57:30 +07:00
Anatoliy Chakkaev 0f592d4bf5 Implement schema.extendModel, closes #157 2013-01-22 01:48:04 +07:00
Anatoliy Chakkaev 91fee1d565 Make memory adapter async 2013-01-22 01:21:43 +07:00
Robb Lovell 84a9582bc0 attempted to write a test for hasmany all function. this commit has it commented out 2013-01-17 12:00:59 -08:00
Anatoliy Chakkaev 5062beb99b Travis env update, compare ids as strings 2012-12-24 22:47:49 +04:00
Anatoliy Chakkaev 0d433c1c5d merge 2012-12-19 19:00:00 +04:00
Anatoliy Chakkaev acc0a71bde Update railwayjs name, add ability to skip tests 2012-12-19 18:57:21 +04:00
Sébastien Drouyer 61ffdbc513 added filter on schema though I am not sure it will be used 2012-12-17 00:02:38 +01:00
Sébastien Drouyer 708265df22 merged + removed preprocessdata callback as it seems it isn't usefull 2012-12-16 18:58:52 +01:00
Sébastien Drouyer 0b91727a35 removed unused console log and comments 2012-12-16 18:21:07 +01:00
Sébastien Drouyer 3ed14b2ed0 added tests for the include functionnality 2012-12-16 18:07:02 +01:00
Anatoliy Chakkaev 59f873a4f2 Uncomment tests 2012-12-15 16:06:17 +04:00
Anatoliy Chakkaev d1eb481fce Allow extend tests 2012-12-14 21:44:38 +04:00
Sébastien Drouyer 24ccb0ffc2 added relations key 2012-12-14 16:28:29 +01:00
Anatoliy Chakkaev a62aab180d Removed nosql adapters (moved to own repos) 2012-12-14 01:50:02 +04:00
Nicholas Westlake 85535dc955 added nano adapter 2012-12-09 03:13:09 -06:00
Sébastien Drouyer b3d92131b3 limited tests to the one I know 2012-11-03 15:53:29 +01:00
Sébastien Drouyer 7930af6eba trying a fix for redis 2012-11-03 15:35:31 +01:00
Sébastien Drouyer 4c8e4d8e4d fixed regression for postgres 2012-11-03 15:25:15 +01:00
Sébastien Drouyer 36b1d91761 fixed tests for mongodb 2012-11-03 14:48:57 +01:00
Sébastien Drouyer 827d32ec47 fixed issue for sqlite 2012-11-03 13:42:40 +01:00
Sébastien Drouyer 77ead6d123 Merge git://github.com/1602/jugglingdb 2012-11-03 13:34:56 +01:00
Sébastien Drouyer c626587d8f added log to data (TEMPORARY) to debug on travis 2012-11-03 13:19:24 +01:00
Anatoliy Chakkaev 0c24dfa035 Merge pull request #141 from sdrdis/master
Added caching in relationships (+ test cases) (enhanced)
2012-11-02 19:20:09 -07:00
Sébastien Drouyer 89b8329764 add test cases for caching in hasMany and fixed test cases for caching in belongsTo 2012-11-01 01:17:09 +01:00
Sébastien Drouyer 6d8454c5ac added test case for the cache of belongsTo 2012-11-01 00:15:23 +01:00
Anatoliy Chakkaev 8cee0ec9b2 Merge pull request #137 from sdrdis/master
Enhanced inq and nin for mysql and postgres and added test cases
2012-10-28 18:06:54 -07:00
Anatoliy Chakkaev c8322eea31 Fix instanceof checking 2012-10-29 04:05:05 +04:00
Sébastien Drouyer 4c95f1dcad added test cases for IN and NOT IN. Only in mysql and postgres for the moment 2012-10-27 20:51:45 +02:00