Anatoliy Chakkaev
2749a1f7e0
Fixes in belongsTo relation definition syntax
2013-03-27 04:48:26 +04:00
Anatoliy Chakkaev
cba87ce339
Query testing: findOne
2013-03-27 00:50:13 +04:00
Anatoliy Chakkaev
de28603460
Added short syntax for belongsTo
2013-03-27 00:48:14 +04:00
Anatoliy Chakkaev
58e2349575
Fix memory adapter to support lowercase desc order
2013-03-26 23:33:40 +04:00
Anatoliy Chakkaev
d5d07d8806
Make tests importable
2013-03-26 04:41:00 +04:00
Anatoliy Chakkaev
f76b56d2fe
Another way to define belongsTo
2013-03-26 04:39:47 +04:00
Anatoliy Chakkaev
16c826bd4f
Rename files
2013-03-25 01:35:08 +04:00
Anatoliy Chakkaev
b59fb01b4a
Upd memory adapter to work with undefined in dataset
2013-03-25 01:28:08 +04:00
Anatoliy Chakkaev
2fa07e8e1d
Rename essentials
2013-03-25 01:27:36 +04:00
Anatoliy Chakkaev
5ea5da0153
Rewrite hooks API
...
This commit breaks compatibility, but adds consistent API and allow modify data of update
2013-03-25 01:25:10 +04:00
Anatoliy Chakkaev
e0b52c6b7e
Settings always set
2013-03-23 22:49:34 +04:00
Anatoliy Chakkaev
a90fe8da41
Merge branch 'master' of github1602:1602/jugglingdb
2013-03-19 14:19:39 +04:00
Anatoliy Chakkaev
ccffd10a58
Added filter, fix [] as type
2013-03-18 23:45:34 +04:00
Scott Nonnenberg
bf3234b9f0
http adapter: pre/postProcess, fix destroy and all
...
preProcess() ensures that null fields are excluded from the wire. I've experienced jQuery/node/express 3.0 turning nulls into empty strings.
postProcess() ensures that Date fields are actually turned back into dates. JSON, you're annoying sometimes.
destroy() is now implemented.
all() now URL encodes any query filters provided.
2013-03-06 18:05:30 -08:00
dgsan
0503ad3295
This is the smash with blunt object fix for #215 , since the more flexible #213 was rejected.
...
There needs to be something done so that types not in `BASE_TYPES` can be parsed without
throwing an exception and making things go nuts when they aren't JSON.
As noted this is the blunt object solution and will not cover all cases, but something needs to be done.
2013-03-05 12:02:07 -07:00
Anatoliy Chakkaev
358f7b788c
FIxes in async validations (in sync case), closes 214
2013-03-01 21:13:04 +07:00
Anatoliy Chakkaev
35571dcd58
Add proper type registration
2013-02-22 01:24:20 +07:00
Anatoliy Chakkaev
56db693454
List support for non-object values
2013-02-19 16:33:09 +08:00
Anatoliy Chakkaev
4d75cb74d7
Add some array methods for List
2013-02-18 16:18:09 +08:00
Anatoliy Chakkaev
a4ec751424
Eliminated global leak
2013-02-12 17:25:59 +08:00
Anatoliy Chakkaev
4eda7df7bc
Described custom validations
2013-02-12 17:05:04 +08:00
Anatoliy Chakkaev
734ab8abd1
If property is array (List) need to convert it to JSON
2013-02-10 04:53:05 +08:00
dgsan
cba174b4ff
This fixes the apparent scope and comparison issues when calling a foreign key relation.
2013-02-01 10:15:03 -07:00
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