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
Anatoliy Chakkaev
01b9307e1c
Better safeRequire
2012-10-07 14:54:20 +04:00
clarktlaugh
f3bafd7bf9
Update lib/adapters/postgres.js
...
fix to add quotes around key so that it works for mixed-case correctly
2012-09-29 20:35:39 -05:00
Anatoliy Chakkaev
451000806d
Merge mongoose multisort
2012-09-27 11:24:20 +04:00
Anatoliy Chakkaev
b6cecc4b78
Added cradle adapter
2012-09-26 09:18:43 +04:00
Anatoliy Chakkaev
ab4844b009
Merge pull request #95 from dombesz/master
...
Bug on initializing models with empty number property on postgresql.
2012-09-25 21:19:56 -07:00
Anatoliy Chakkaev
2cbce0d843
Merge pull request #125 from nashadalam/patch-1
...
Mongoose Adapter Single Index support
2012-09-25 21:10:16 -07:00
Anatoliy Chakkaev
46e65b7e63
Update mysql to 2.0
2012-09-26 08:08:27 +04:00
Anatoliy Chakkaev
8cd1ec2e9e
Fix redis2 indexes cleanup
2012-09-25 08:39:23 +04:00
Anatoliy Chakkaev
cca1cbb3f8
Not strict equal when matching ids in embedded lists
2012-09-20 16:02:48 +04:00
Nashad Alam
45e1df09db
Mongoose Adapter Single Index support-Spacing Fix
2012-09-20 14:22:36 +10:00
Nashad Alam
768ba2c677
Mongoose Adapter Single Index support
2012-09-20 14:13:07 +10:00
Matt Huggins
c3dd47f448
Allow for IN, NOT IN, and != queries in postgres
2012-09-13 20:15:46 -04:00
Anatoliy Chakkaev
26905651a1
Fix standard_conforming_strings for postgres
2012-09-13 23:35:11 +04:00
Mikxail
2baabb624f
Update lib/adapters/memory.js
...
Multiple sorting with full support asc/desc
2012-09-12 15:26:20 +04:00
Anatoliy Chakkaev
ffbc9482f7
Make property configurable to pass tests
2012-09-11 23:53:19 +04:00
Anatoliy Chakkaev
c8b8012e28
List API improvements
2012-09-11 23:22:55 +04:00
Anatoliy Chakkaev
e0f5f45b05
List improvements
2012-09-11 20:51:31 +04:00
Anatoliy Chakkaev
c3af8b2aea
Fix postgres
2012-09-10 19:59:06 +04:00
Anatoliy Chakkaev
b481e4c096
Merge branch 'master' of github.com:1602/jugglingdb
2012-09-10 19:57:40 +04:00
Anatoliy Chakkaev
e938a814e8
Added typed lists support
2012-09-10 19:57:21 +04:00
Sam Taylor
c118786cea
fix global leak in postgres adapter
2012-09-09 17:00:46 +01:00
Anatoliy Chakkaev
e39691763f
Revert sort-only indexes
2012-09-09 19:54:33 +04:00
Anatoliy Chakkaev
dee112a35c
Redis sort-only indexes
2012-09-09 19:30:01 +04:00
Anatoliy Chakkaev
562856f1bd
Fix in-memory adapter tests
2012-09-09 17:17:08 +04:00
Anatoliy Chakkaev
a2618dd3a2
Fix typo, tune redis2
2012-09-09 16:51:53 +04:00
Anatoliy Chakkaev
44591111b6
Rewritten redis
2012-09-08 17:03:49 +04:00
Anatoliy Chakkaev
7b8321b3e4
Refactored and optimized redis adapter
2012-09-08 16:57:57 +04:00
Anatoliy Chakkaev
d962a22063
Fix postgres offset feature
2012-09-04 17:33:15 +04:00
Anatoliy Chakkaev
5a65b4f1c2
Merge branch 'master' of github.com:1602/jugglingdb
2012-09-04 17:24:18 +04:00
Anatoliy Chakkaev
2aede39246
Bump 0.1.14. Fix typo in redis adapter
2012-09-04 17:23:57 +04:00
Anatoliy Chakkaev
562d06b83f
Merge pull request #93 from mhuggins/pg-offset
...
Fix PostgreSQL query offset (issue #83 )
2012-08-31 03:42:59 -07:00
Anatoliy Chakkaev
028049f8b2
Callback called only once + database selection
2012-08-28 13:59:40 +04:00
Anatoliy Chakkaev
a3963485f5
Merge branch 'master' of github.com:1602/jugglingdb
2012-08-24 12:22:22 +04:00
Anatoliy Chakkaev
e46716f9d2
Changed validatable inheritance, fixed issue with belongsTo #113
2012-08-24 12:22:02 +04:00
Anatoliy Chakkaev
60fad51623
Merge pull request #111 from mypark/master
...
fixes to make sure callback was called on the all method and to get neo4j adapter working with railway
2012-08-23 15:44:45 -07:00
Anatoliy Chakkaev
3faaa56450
More information about alter in isActual
2012-08-20 11:01:08 +04:00
Anatoliy Chakkaev
cc40d15082
Fix autoupdate for mysql
...
;
2012-08-20 00:44:15 +04:00
Anatoliy Chakkaev
12eadb80ae
Autoupdate multicolumn indexes
2012-08-19 19:40:21 +04:00
Mike P
94fb10d560
I put the delete in the wrong line, moved down..
2012-08-18 12:42:43 -03:00
Mike P
3ca47526e5
re-adding fix to not save id as a property on update
2012-08-18 12:40:58 -03:00
Mike P
df798791fa
Update lib/adapters/neo4j.js
...
removing the change to delete the id property in the cleanup since that fails the unit test
2012-08-18 11:47:15 -03:00
Mike P
53831da913
Update lib/adapters/neo4j.js
...
don't save an id property on update since there is already a node id from neo4j
2012-08-18 11:24:12 -03:00
Mike P
7003a3e8c7
Update lib/abstract-class.js
...
make sure that callback is called when there are no records or data in the all method
2012-08-18 11:22:00 -03:00
Anatoliy Chakkaev
62d0e459c0
Single-column indexes in mysql (autoupdate)
2012-08-17 23:39:22 +04:00
Anatoliy Chakkaev
62178c26c9
Unnecessary error on mongodb authentication. Skip checking
2012-08-17 22:48:14 +04:00
Anatoliy Chakkaev
d2d602117f
Merge pull request #110 from imothee/mongodb-replicaset
...
Mongodb native driver replicaset and authentication
2012-08-16 23:33:42 -07:00
Anatoliy Chakkaev
cfda58f710
Fix typo, bump version
2012-08-17 00:32:04 +04:00
Anatoliy Chakkaev
d11293dc94
Provide additional info about collection
2012-08-16 14:21:46 +04:00
Anatoliy Chakkaev
7b7fa8a0ed
Move to latest mongoose / fix api
2012-08-14 19:12:42 +04:00
Timothy Marks
59ba68494d
Adds replica-set support to the mongodb native driver.
...
Adds replica set support through .rs property for replica set name and
accepts similar url for replica set definition to mongoose.js driver.
2012-08-15 00:23:23 +10:00
Timothy Marks
eaa2f026b0
Adds authenticate to db.open if a username and password are set.
2012-08-14 22:31:49 +10:00
Anatoliy Chakkaev
a54961923d
Update postgres
2012-08-13 10:27:18 +04:00
Anatoliy Chakkaev
134799763c
Merge branch 'mongodb-driver' of https://github.com/imothee/jugglingdb
2012-08-13 10:16:22 +04:00
Anatoliy Chakkaev
efdc4548fc
JSON in tests, Schema.JSON published
2012-08-13 10:16:01 +04:00
Timothy Marks
2fb97e2c59
Adds Replica Set Support to JugglingDB Mongoose Adapter
2012-08-11 17:06:26 +10:00
Timothy Marks
a565dbbd12
Fixes issue where only id would be saved when updating an existing object for mongodb driver.
...
.save instead of .update was being called which would persist only a
data object with the id value to the database on doing a save of an
existing object.
2012-07-28 22:37:48 +10:00
Dombi Attila
b5eaa99d5a
Added stricter value checking on number.
2012-07-19 18:26:58 +03:00
Anatoliy Chakkaev
752e711bca
Merge pull request #103 from Katoka/master
...
Modified my previous pull requests commit
2012-07-14 05:11:06 -07:00
Taner Topal
3f0a3f526b
modified destroyAll
2012-07-13 15:53:22 +02:00
Jude Lam
913f9d4fc1
Added fix to the abstract-class.js file for issue #72 . The fix is resolved by by5739.
2012-07-08 21:20:11 -04:00
Anatoliy Chakkaev
7a2e300181
Allow relative driver paths, adopt for node 0.8
2012-07-02 15:59:44 +04:00
Dombi Attila
e4527856ad
The updateAttribute callback doesn't behaves as its described. It should send the object instance alongside the error too.
2012-06-26 15:44:57 +03:00
Anatoliy Chakkaev
11fc70b89a
Merge branch 'master' of github.com:1602/jugglingdb
2012-06-25 14:13:38 +04:00
Anatoliy Chakkaev
66fd977fd4
Wrap database name with quotes
2012-06-25 14:13:08 +04:00
Dombi Attila
e1bd92b52a
fix sql error when initializing models with empty Number property. It should return NULL when a number is empty
2012-06-19 13:13:59 +03:00
Matt Huggins
f3abbf13b6
Fix PostgreSQL query offset
2012-06-10 19:10:18 -04:00
Aurélien Thieriot
d333fe1d30
First version of a cradle adapter
2012-06-10 16:51:56 +02:00
Wizek
518a324912
https://groups.google.com/d/msg/railwayjs/4YWICL6EAOg/ebCxGkQ5eQcJ
2012-06-06 02:21:39 +03:00
Anatoliy Chakkaev
418cc03a27
Adopt postgres stuff
2012-06-02 22:33:29 +04:00
Anatoliy Chakkaev
40c9923053
Coverage added to gitignore
2012-05-29 15:16:24 +04:00
Jonathan Spies
75f9373ae5
added custom collection name to mongoose
2012-05-17 22:13:29 -05:00
Joseph Junker
3dcdb1e911
heavily modified sections of postgres adapter, postgres is now passing all tests
2012-05-16 14:39:43 -07:00
Jonathan Spies
3179c05b95
added multiple sort for mongoose
2012-05-13 23:28:37 -05:00
Anatoliy Chakkaev
8e312bfe61
Merge pull request #77 from bitmage/master
...
Postgres - Minor Fix
2012-05-05 04:27:00 -07:00
Rob Scott
5f0514a37c
Fixes mysql adapter 'neq' condition.
2012-05-04 15:19:59 -03:00
bitmage
64cfb9ee01
added double quotes to field names
2012-05-03 10:28:08 -07:00
Anatoliy Chakkaev
2b67400525
Support modular railway
2012-05-03 02:15:09 +04:00
Anatoliy Chakkaev
7d748e9c02
Upsert with setters
2012-04-19 20:06:38 +04:00
Anatoliy Chakkaev
16a1c21d9c
Fix sql adapters
2012-04-19 19:20:10 +04:00
Anatoliy Chakkaev
222b457b3f
Setters enabled in new and create
2012-04-19 19:01:40 +04:00
Anatoliy Chakkaev
02138b8965
Merge branch 'master' of github.com:1602/jugglingdb
2012-04-19 03:21:14 +04:00
Anatoliy Chakkaev
1b83266fd6
Jslinize if blocks, not strict equal for ids on uniqueness checking
2012-04-19 03:20:44 +04:00
Henri Bergius
6a777c00ac
Prevent data from leaking to global
2012-04-13 18:58:23 +02:00
Anatoliy Chakkaev
221c3d4c83
Merge branch 'master' of github.com:1602/jugglingdb
2012-04-11 23:39:35 +04:00
Anatoliy Chakkaev
881a5b49fc
Fix mongoose adapter find
2012-04-11 23:39:11 +04:00
Anatoliy Chakkaev
2ce44db4ba
Tune propertyChanged behavior
2012-04-11 23:31:10 +04:00
Kelvin Wong
f16d0573c5
Fix 'undefined is not a function' problem at postgres adapter
2012-04-12 01:51:55 +08:00
Anatoliy Chakkaev
6c0ac6df16
Merge branch 'master' of github.com:1602/jugglingdb
2012-04-11 19:37:53 +04:00
Anatoliy Chakkaev
df57805b94
Turn off caching
2012-04-11 19:36:10 +04:00
Henri Bergius
d7cc8b2d51
Some safeties to URL handling
2012-04-10 16:30:55 +02:00
Henri Bergius
24e051b1e9
Enable setting up Redis with URL
2012-04-10 15:47:11 +02:00
Anatoliy Chakkaev
87a8172b82
Add warning for validations in schema.js
2012-04-10 01:28:14 +04:00
Anatoliy Chakkaev
8dafb424ed
Not strict equal for scoped find, trigger beforeUpdate with data
2012-04-09 20:24:35 +04:00
Anatoliy Chakkaev
40b4d28a1a
Fix scoped find method
2012-04-07 17:43:15 +04:00
Anatoliy Chakkaev
5c2b995cf1
Postgres migrations fix #54
2012-04-02 20:49:46 +04:00
Anatoliy Chakkaev
426efeabcf
Documentation, railway tweaks
2012-03-27 23:48:23 +04:00
Anatoliy Chakkaev
6ee7de0716
Document
2012-03-27 18:22:24 +04:00
Anatoliy Chakkaev
30d0818eed
Fix multiple queries issue #51
2012-03-25 15:37:44 +04:00
Anatoliy Chakkaev
fa8a587215
Delayed database calls
2012-03-24 17:50:52 +04:00
Anatoliy Chakkaev
29afdff4dc
upsert for redis
2012-03-23 00:33:09 +04:00
Anatoliy Chakkaev
95c0e7d5d0
upsert for redis
2012-03-23 00:24:15 +04:00
Anatoliy Chakkaev
c06f28f433
Support upsert
2012-03-22 23:46:16 +04:00
Taner Topal
07edcdce22
Implemented destroyAll for sub-scopes
2012-03-21 12:12:13 +01:00
Anatoliy Chakkaev
66319b2c79
Merge branch 'master' of github.com:1602/jugglingdb
2012-03-16 18:44:48 +04:00
Anatoliy Chakkaev
4ec9757503
Added contributors, MRU cache cleanup, closes #46
2012-03-16 18:42:02 +04:00
Felipe Sateler
e3e7bf10ed
Pass DEFAULT to autoincrement values in PG
...
PostgreSQL doesn't like NULLs in not null columns. Add a new option
autoIncrement, that when set makes the adapter insert DEFAULT instead of
NULL in those values.
2012-03-13 17:52:53 -03:00
Anatoliy Chakkaev
f3e80c28f7
Correctly handle callback after blank automigration
2012-03-11 16:42:07 +04:00
Anatoliy Chakkaev
d558dd6b70
Support node 0.4 in mongodb adapter
2012-03-11 15:28:42 +04:00
Anatoliy Chakkaev
8bb855c88c
Mongodb adapter
2012-03-11 08:48:38 +04:00
Anatoliy Chakkaev
2c43a97f7e
Removed sequelize adapter
2012-03-10 16:07:59 +04:00
Anatoliy Chakkaev
633ae4067a
Remove frozen neo4j lib, add neo4j database setup for travis-ci
2012-03-10 15:56:23 +04:00
Anatoliy Chakkaev
c894694c7f
Custom table name for sqlite3
2012-03-10 14:32:14 +04:00
Anatoliy Chakkaev
b4de14b811
Added sql for common parts
2012-03-10 12:40:00 +04:00
Anatoliy Chakkaev
7ae592ec9a
DRY sql adapters
2012-03-10 12:39:39 +04:00
Anatoliy Chakkaev
13dce54a14
Unhashish, escape names, start moving common parts to sql.js
2012-03-10 11:55:25 +04:00
Felipe Sateler
f39d3af5bd
Allow custom table name in postgres too
2012-03-09 20:25:24 -03:00
Anatoliy Chakkaev
d3231e7484
Allow custom table name in mysql
2012-03-07 11:29:08 +04:00
Henri Bergius
cdc7ae6c82
Don't add a WHERE if there are no constraints
2012-03-06 14:08:27 +01:00
Anatoliy Chakkaev
c33bc70756
Support reverse sort for redis
2012-03-06 17:05:22 +04:00
Anatoliy Chakkaev
639820bf29
Model.findOne, mongoose reverse sort, closes #38
2012-03-06 16:46:18 +04:00
Anatoliy Chakkaev
53f39a046a
Fix unnecessary _was attributes issue, closes #36 , #31 , #34 , #35
2012-03-03 13:55:29 +04:00
Anatoliy Chakkaev
9b3d432942
Reverse sort order in redis and memory, test
2012-03-01 23:57:48 +04:00
Anatoliy Chakkaev
7f073a4622
Test belongsTo
2012-03-01 21:26:52 +04:00
Henri Bergius
718cc2fa18
MySQL shouldn't break on null Date values
2012-03-01 17:02:20 +02:00
Henri Bergius
437c0df047
Safety: there might not be any indexes to use
2012-02-28 16:22:01 +02:00
1602
61cad1c89e
Merge pull request #27 from patrickotoole/master
...
Modified belongsTo method
2012-02-21 13:47:40 -08:00
Anatoliy Chakkaev
35e872368a
Default should not be handled by database engine
2012-02-20 22:44:02 +04:00
Anatoliy Chakkaev
11b4436fd1
Merge branch 'master' of github.com:1602/jugglingdb
2012-02-20 22:33:28 +04:00
Anatoliy Chakkaev
e8c6f68353
Add schema.isActual and automigrate on sqlite start
2012-02-20 22:33:11 +04:00
1602
96459bfdcd
Merge pull request #24 from Geeknux/master
...
Add some new features to advance query in Mysql
2012-02-20 10:32:09 -08:00
Mansur
4b9cd8e678
Fix sorting by id in redis
2012-02-11 14:47:54 +04:00
Rick O'Toole
e94787724b
changed belongsTo so grabs the belongs to relationship properly
2012-02-07 19:55:49 -10:00
Amir M. Mahmoudi
7569a923c8
Fixing some bugs, which fix default values and length of fields in mysql adapter
2012-02-06 22:22:13 +03:30
Anatoliy Chakkaev
5547a3acbe
Add alias for skip/offet (mongoose)
2012-02-05 04:42:15 +08:00
Amir M. Mahmoudi
a34d277ef8
Add some features to advanced queries
2012-02-04 14:55:07 +03:30
Anatoliy Chakkaev
adf2a0502e
Add alias for skip/offet (mongoose)
2012-02-03 00:15:01 +04:00
Anatoliy Chakkaev
fb79ca2bf8
Advanced queries for sql-s and mongodb
2012-02-01 21:33:08 +04:00
Anatoliy Chakkaev
e9f35fd7fd
Emit logging event
2012-01-31 13:25:44 +04:00
Anatoliy Chakkaev
9faccf8638
Added utils module
2012-01-30 23:37:14 +04:00
Anatoliy Chakkaev
643c2879fe
Mongoose order/limit/offset and more
...
- Lazy dependencies loading
- Travis mongoose inetration
- All tests should run on travis
- Model.count for mongoose
2012-01-30 23:34:30 +04:00
Anatoliy Chakkaev
7a52a7cfb6
SQLite3 adapter
2012-01-30 19:43:45 +04:00
Anatoliy Chakkaev
5b308b846e
Fix postgres adapter
2012-01-30 17:54:13 +04:00
Anatoliy Chakkaev
ad7d1d568a
Model.count with params support, fix time in mysql
2012-01-30 17:27:26 +04:00
Anatoliy Chakkaev
b237b7bd4c
Allow to call create without callback
2012-01-27 12:48:37 +04:00
Anatoliy Chakkaev
41b4ded78c
Remove unnecessary logging
2012-01-26 13:26:38 +04:00
Anatoliy Chakkaev
14c34a8058
Mysql sort, where and limit
2012-01-20 00:16:30 +04:00
Anatoliy Chakkaev
eb4e13922a
Rewrite redis test to make possible filter and sort simultaneously
2012-01-19 20:18:57 +04:00
Anatoliy Chakkaev
f21b3f2a43
Implement first-round sorting in memory adapter
2012-01-19 17:44:11 +04:00
Anatoliy Chakkaev
f0a34bf008
Redis-adapter: test sorting, support alpha-sort, fix destroyAll issue
2012-01-18 22:49:30 +04:00
1602
d05e018234
Merge pull request #16 from juggy/redis-sort
...
limit/offset and order clause for redis adapter
2012-01-18 07:52:55 -08:00
Anatoliy Chakkaev
08cc5eb105
Return name of type
2012-01-18 19:20:05 +04:00
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
Julien Guimont
f8f6f4d995
limit/offset and order clause for redis adapter
...
Conflicts:
lib/adapters/redis.js
2011-12-16 22:01:38 -05: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
Anatoliy Chakkaev
6238b738e4
Update neo4j: safe callbacks, update indexes on save
2011-10-19 00:35:00 +04:00
Anatoliy Chakkaev
f8b1b87a65
Patch neo4j lib
2011-10-16 21:24:54 +04:00
Anatoliy Chakkaev
f799e80fbb
Freeze neo4j lib
2011-10-16 21:21:46 +04:00
Anatoliy Chakkaev
ece00ceaaa
Neo4j features
2011-10-16 21:21:08 +04:00
Anatoliy Chakkaev
8e05e59933
Scopes
2011-10-15 19:57:35 +04:00
Anatoliy Chakkaev
8a05e1ffad
Conditional validations
2011-10-11 23:52:03 +04:00
Anatoliy Chakkaev
9de9e590d6
Apply defaults on create
2011-10-11 23:51:32 +04:00
Anatoliy Chakkaev
3eb3399855
Validate format, nullChecks everywhere
2011-10-10 21:34:50 +04:00
Anatoliy Chakkaev
54ddb55c49
Validations
2011-10-10 17:22:51 +04:00
Anatoliy Chakkaev
b2ea9c65b0
Reorganize package
2011-10-08 21:11:26 +04:00
Anatoliy Chakkaev
5a111089b3
Pre-release
2011-10-06 00:33:07 +04:00
Anatoliy Chakkaev
c5da2b56a7
Redis indexes intersections
2011-10-05 18:47:26 +04:00
Anatoliy Chakkaev
5285677876
Cleanup data before saving in neoj4
2011-10-05 00:17:52 +04:00
Anatoliy Chakkaev
76b8bf54d1
Indexes in redis
2011-10-05 00:17:06 +04:00
Anatoliy Chakkaev
e281e7e8a6
Mongoose, tests versioned
2011-10-03 21:18:44 +04:00
Anatoliy Chakkaev
4e849a9f7a
Neo4j
2011-10-03 17:37:33 +04:00
Anatoliy Chakkaev
b773763cbe
Memory storage
2011-10-03 17:36:43 +04:00
Anatoliy Chakkaev
d865b77aea
Sequelize adapter
2011-10-01 23:40:22 +04:00
Anatoliy Chakkaev
d5341d3126
ORM base & redis adapted
2011-10-01 19:51:51 +04:00