Anatoliy Chakkaev
cdd328c902
Revert validatable fix
2013-01-30 23:08:52 +07:00
Anatoliy Chakkaev
9f0dfeb58a
Add attr param to custom validator, closes #200
2013-01-30 22:30:31 +07:00
Anatoliy Chakkaev
5b33c2a0f1
Removed unused experimental stuff
2013-01-29 18:47:03 +07:00
Anatoliy Chakkaev
707fb01713
Make pathTo available in db/schema
2013-01-23 06:31:02 +07:00
Anatoliy Chakkaev
59e80e8454
Fix uniqueness validation (mongo ids)
2013-01-23 03:22:48 +07:00
Anatoliy Chakkaev
d03dbfcb99
Throw error when model is not configured for webservice
2013-01-23 03:22:31 +07:00
Anatoliy Chakkaev
cefd79dbf6
Return null when findOne could not find record, closes #128
2013-01-22 23:47:14 +07:00
Anatoliy Chakkaev
8cfa00a1b2
Work with cs-compound
2013-01-22 23:27:49 +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
Anatoliy Chakkaev
9dbc8fa50b
Implement findOrCreate, requested in #190
2013-01-22 01:21:31 +07:00
Anatoliy Chakkaev
4d47d8348d
Revert hasMany change
2013-01-21 23:08:13 +07:00
Anatoliy Chakkaev
1010d5d64d
Merge pull request #192 from robblovell/hasmany
...
Hasmany
2013-01-21 07:42:01 -08:00
Anatoliy Chakkaev
d5758ec8be
Added schema::model::set for railway
2013-01-21 20:29:41 +07:00
Anatoliy Chakkaev
02b7f707ff
Added http (WebService) adapter
2013-01-20 23:05:45 +07:00
Anatoliy Chakkaev
e9b7e89ee9
Accept adapter as first argument of Schema constructor
2013-01-19 20:50:53 +07:00
Erin Noe-Payne
d4043d715f
fix lost callback
2013-01-18 12:31:49 -05:00
Robb Lovell
6f9c495720
added 'all' method to hasMany in abstract-class.js to correctly support a 'many' collection. added .idea to .gitignore to ignore WebStorm projects.
2013-01-17 11:16:52 -08:00
Asp3ctus
4f7ffb903e
fix typo :)
2013-01-08 15:37:58 +06:00
Asp3ctus
c78a4de375
app.enable('autoupdate') option support
2013-01-08 15:34:59 +06:00
Anatoliy Chakkaev
c7409be559
Fix for reading yml files
2012-12-24 22:17:23 +04:00
Anatoliy Chakkaev
e8ef71c431
Only update id if it does not present in resulting dataset
2012-12-24 00:31:32 +04:00
Anatoliy Chakkaev
05a6d686aa
Strict adapter checking
2012-12-21 18:26:21 +04:00
Anatoliy Chakkaev
3dc24b8f51
Merge branch 'master' of github.com:1602/jugglingdb
2012-12-21 12:56:45 +04:00
Anatoliy Chakkaev
3038eb33fd
Do not throw on missing adapter, just display warning
2012-12-21 12:56:16 +04:00
Sascha Gehlich
7ec8ab55d1
updateAttributes data defaults to {}
2012-12-19 19:29:14 +01: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
Anatoliy Chakkaev
3c4fd78014
Merge pull request #177 from saschagehlich/js_config
...
allow database.js config
2012-12-17 01:30:21 -08:00
Sascha Gehlich
252a067df7
allow database.js config
2012-12-17 10:25:27 +01:00
Sébastien Drouyer
519d6cf7fb
Merge github.com:1602/jugglingdb
2012-12-16 23:58:53 +01:00
Sébastien Drouyer
fbe04233cc
added some documentation for include and all function
2012-12-16 19:44:14 +01:00
Sébastien Drouyer
6db1a003d4
cleaned some old comments
2012-12-16 19:19:53 +01:00
Anatoliy Chakkaev
bc250b1bb2
Merge pull request #169 from saschagehlich/schema_wait_connect
...
let the adapter decide when to load the schema
2012-12-16 10:10:04 -08: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
175ad3141d
small fix on relations
2012-12-16 18:20:39 +01:00
Sébastien Drouyer
c6bddf170a
added include functionnality to abstract class and mysql
2012-12-16 18:05:36 +01:00
Sascha Gehlich
53e2dcf30b
add additional types stored in Schema.types to schema context
2012-12-16 14:29:53 +01:00
Sascha Gehlich
ed8ff0ca36
let the adapter decide when to load the schema
2012-12-16 14:08:51 +01:00
Anatoliy Chakkaev
5208298a67
Fix broken yml config, closes #159
2012-12-15 16:05:32 +04:00
Sébastien Drouyer
24ccb0ffc2
added relations key
2012-12-14 16:28:29 +01:00
Anatoliy Chakkaev
100b5322c6
Remove sql adapters and tests
2012-12-14 19:25:32 +04:00
Anatoliy Chakkaev
91c90ef3ad
Remove sqlite3 adapter
2012-12-14 17:12:13 +04:00
Anatoliy Chakkaev
a62aab180d
Removed nosql adapters (moved to own repos)
2012-12-14 01:50:02 +04:00
Tim Griesser
fe4f19106a
allow socketPath for mysql config
2012-12-12 15:16:23 -05:00
Anatoliy Chakkaev
91cde064a6
Merge branch 'master' of github.com:1602/jugglingdb
2012-12-10 17:48:55 +04:00
Anatoliy Chakkaev
f929272fa3
Fix cradle+railwayjs
2012-12-10 17:48:22 +04:00
Nicholas Westlake
85535dc955
added nano adapter
2012-12-09 03:13:09 -06:00
Dominik Krejcik
035c42eb9d
Log Redis connection errors instead of crashing
2012-11-29 01:33:19 +00:00
Anatoliy Chakkaev
c252926f34
Docs and style in lib/list
2012-11-20 18:37:04 +07:00
Anatoliy Chakkaev
b3ce33805c
Namespace adapters
2012-11-14 11:29:29 +07:00
Muneeb Samuels
fa50e0e5e8
when using cradle if we don't wait for the schema to be connected, the models fails to load correctly.
2012-11-10 20:14:13 +02:00
Anatoliy Chakkaev
cb9f0c3d16
Better docs, no warning
2012-11-10 09:28:07 +04:00
Nathan Cartwright
596cd3d461
update mongodb adapter
2012-11-08 14:54:36 -06:00
Anatoliy Chakkaev
3731447787
Merge branch 'master' of github.com:1602/jugglingdb
2012-11-06 19:53:04 +04:00
Anatoliy Chakkaev
47d72ce14e
Cast id to string before creation, fix #145
2012-11-06 19:52:37 +04:00
Anatoliy Chakkaev
fb075fdd97
Merge pull request #144 from muneebs/master
...
update cradle.js
2012-11-05 09:09:39 -08:00
taiyoh
30e9983abf
remove commentouted source
2012-11-05 22:30:57 +09:00
taiyoh
885e9188f8
fixed type check strictly
2012-11-05 22:22:47 +09:00
Anatoliy Chakkaev
e10c42ed1b
Fix id:null issue #98
2012-11-05 08:08:32 +04:00
Muneeb Samuels
75c96bdaa9
- fixed typo in updateOrCreate method.
2012-11-04 22:24:15 +02:00
Muneeb Samuels
d248de7f9d
- added views to do .all queries, it speeds up the query.
2012-11-04 22:22:00 +02:00
Muneeb Samuels
53272e6fd6
Merge remote-tracking branch 'origin/master'
...
Conflicts:
lib/adapters/cradle.js
2012-11-04 21:30:42 +02:00
Muneeb Samuels
a3f30a112a
- fixed typo in updateOrCreate method.
...
- added views to do .all queries, it speeds up the query.
2012-11-04 21:30:08 +02: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
8f41fdf90d
fixed indentation + adapted to markdown syntax
2012-11-03 02:05:27 +01:00
Sébastien Drouyer
5aa0efd818
corrected indentation issues
2012-11-03 01:56:53 +01:00
Sébastien Drouyer
fe8ed86301
small sentence fixes + added usage examples in belongsTo comments
2012-11-03 01:39:35 +01:00
Sébastien Drouyer
46b7747c87
fixed and enhanced caching in getters and setters in abstract-class
2012-11-01 01:13:16 +01:00
Muneeb Samuels
6f973f9fa5
cradle adapter update
...
using views speeds up the query by only fetching the documents for the model being queried.
2012-10-31 01:34:39 +02:00
Muneeb Samuels
2cc1896864
using views speeds up the query by only fetching the documents for the model being queried.
2012-10-31 01:30:55 +02:00
Anatoliy Chakkaev
83695513f9
Globally published models for railway 1.0
2012-10-30 03:41:45 +04:00
Sébastien Drouyer
0633737ac7
added caching functionnality
2012-10-30 00:37:19 +01:00
Anatoliy Chakkaev
e0f5f18774
Models publishing for both railway stable and unstable
2012-10-29 22:22:40 +04:00
Anatoliy Chakkaev
f7aed3a814
Fix railway 1.0 support
2012-10-29 18:11:43 +04: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
ae193c9064
Merge branch 'master' of github.com:1602/jugglingdb
2012-10-29 04:05:26 +04:00
Anatoliy Chakkaev
c8322eea31
Fix instanceof checking
2012-10-29 04:05:05 +04:00
Anatoliy Chakkaev
8b4da9e5e9
Remove globals, read yaml
2012-10-29 03:21:51 +04:00
Sébastien Drouyer
fc46de162f
generalize escape on IN and NOT IN values
2012-10-27 20:48:21 +02:00
Sébastien Drouyer
d5b0003350
Fixed postgres adapter for IN and NIN when values are strings and where there is 0 value
2012-10-27 20:47:25 +02:00
Sébastien Drouyer
f17716272c
Fixed IN and NOT IN when searching on strings
2012-10-27 20:00:40 +02:00
Sébastien Drouyer
ad0ea2602f
Fixed bug for IN on NOT IN - corrected
...
When length of values for IN and NOT IN is 0, it causes an SQL error: "IN ()" and "NOT IN ()" doesn't work in MySQL.
I corrected my first pull request :
https://github.com/1602/jugglingdb/pull/135
2012-10-24 00:28:28 +03:00
Anatoliy Chakkaev
c27a624d02
Fix inheritance
2012-10-22 17:33:57 +04:00
Anatoliy Chakkaev
e6be50eb81
Fix broken mysql adapter after merging pull request
2012-10-22 00:43:00 +04:00
Anatoliy Chakkaev
ee6c2bff21
Merge pull request #133 from sdrdis/patch-1
...
Fixed bug (oversight ?) on alter table
2012-10-21 13:17:48 -07:00
Anatoliy Chakkaev
c8f6d416a6
Remove unused cached relations, closes #134
2012-10-22 00:14:05 +04:00
Sébastien Drouyer
d1bb0126e3
Fixed bug (oversight ?) on alter table
...
Fixed bug (oversight ?) on alter table : it was still model name.
2012-10-21 01:51:30 +03:00
Muneeb Samuels
0203d52728
Update lib/adapters/cradle.js
...
fixed an issue where if no filters were passed in, the .all query would throw an exception
2012-10-19 23:49:01 +03:00
Muneeb Samuels
03f9c24642
limit + skip
...
Added filter limit + filter skip for query .all
2012-10-19 01:27:02 +03:00
Anatoliy Chakkaev
4fe9759afc
Fix typo, start new release preview
2012-10-16 13:12:34 +04:00
Anatoliy Chakkaev
575a29d4af
Print properly formatted object
2012-10-16 03:15:29 +04:00
Anatoliy Chakkaev
96e9079977
Remove lazy collections, remove unused caching stuff, unsupport node 0.4 (travis)
2012-10-16 02:22:40 +04:00
Anatoliy Chakkaev
dbb39bf43e
Further optimizations: remove hasOwnProperty backward compat
2012-10-16 01:29:30 +04:00
Anatoliy Chakkaev
f6d8b08631
Proper collection caching
2012-10-14 15:02:13 +04:00
Anatoliy Chakkaev
f59cf0ddbf
Specify collection length
2012-10-13 19:19:53 +04:00
Anatoliy Chakkaev
a31a10a5ae
Merge branch 'master' of github.com:1602/jugglingdb
2012-10-13 18:26:15 +04:00
Anatoliy Chakkaev
488bc68e05
Optimize collection
2012-10-13 18:25:50 +04:00
Anatoliy Chakkaev
1ec419aa42
Better performance on big datasets read
2012-10-13 17:59:25 +04:00
Mikko Lehtinen
075699ee27
Fix for redis adapter when finding records filtered with multiple attributes
2012-10-09 21:19:38 +03:00