Raymond Feng
8d9d73efff
Add properties/methods to DataSource from ModelBuilder
2013-11-20 10:56:48 -08:00
Raymond Feng
2bcdea76f5
Fix the model attachment to data source
2013-11-19 10:49:54 -08:00
Raymond Feng
995a2139c8
Rename association to relation
2013-11-15 20:29:20 -08:00
Raymond Feng
b5e0f14249
Separate the modelBuilder ref from dataSource
2013-11-15 11:12:33 -08:00
Raymond Feng
526d126e41
Fix the relation lazy setup
2013-11-11 22:06:43 -08:00
Raymond Feng
ec7f79e935
Ensure the model is attached to DataSource for relations
2013-11-09 22:16:32 -08:00
Raymond Feng
7aa2eefec4
Remove inheritence from DataSource to ModelBuilder
2013-11-08 17:13:00 -08:00
Raymond Feng
0b899b0542
Allow settings.base to specify the base model
2013-11-07 17:11:17 -08:00
Raymond Feng
580ce14f0d
Extract the relation types
2013-11-07 13:30:54 -08:00
Raymond Feng
566da386ae
Refactor the relation handling and enable it with attach
2013-11-07 13:09:09 -08:00
Raymond Feng
68cf633795
Add support for hasMany-through and more tests
2013-11-05 09:29:24 -08:00
Raymond Feng
4fbec288c4
Enable deferred type/relation resolutions
2013-11-04 22:53:02 -08:00
Ritchie Martori
65bb5c8ead
Merge pull request #33 from strongloop/get-datasource
...
Remove model.dataSource property / Add model.getDataSource() method
2013-10-31 14:50:56 -07:00
Ritchie Martori
597a775e4c
Add model.getDataSource() method
2013-10-31 11:46:12 -07:00
Raymond Feng
dff3367f3a
Fix the regression when 1st arg is the connector module
2013-10-29 13:04:23 -07:00
Raymond Feng
f3011216b5
Support datasource/connector configuration using URL string
2013-10-25 16:18:02 -07:00
Raymond Feng
dd936b15a2
Make sure model definition is built when attaching to a DS
2013-10-11 16:35:17 -07:00
Raymond Feng
aed3fb0e06
Log more information for the connection failure
2013-10-11 11:48:12 -07:00
Raymond Feng
64f57a2297
Handle connection errors
2013-10-10 22:47:26 -07:00
Raymond Feng
b8f94f5777
Make sure foreign key properties are fully registered
2013-10-07 18:01:31 -07:00
Raymond Feng
2a15bb917a
Fix the foreign key definition
2013-10-04 15:49:13 -07:00
Raymond Feng
1ae9478496
Fix the columnName
2013-10-03 14:49:03 -07:00
Raymond Feng
691743493c
Fix copy of model definitions
2013-10-02 17:20:54 -07:00
Raymond Feng
1963ea9fb1
Use ModelDefinition to access model name/properties/settings
2013-10-02 15:18:50 -07: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
bf223320ea
Allow connector to report failure during initialization
2013-09-12 13:32:53 -07:00
Raymond Feng
6f111f8122
Allows custom name of the id property for the memory connector
2013-08-27 22:32:01 -07:00
Raymond Feng
59841a04a8
Set strict to false by default for non-relational data sources
2013-08-26 13:38:24 -07:00
Raymond Feng
cf07563414
Fix the message
2013-08-20 16:14:27 -07:00
Raymond Feng
0fd167a41d
Use DEBUG or NODE_DEBUG env to override the debug flag
2013-08-18 23:11:32 -07:00
Raymond Feng
6c0f2483b3
Update jsdocs
2013-08-13 09:37:27 -07:00
Raymond Feng
d3bf5c20ac
Add an optional models argument to automigrate/autoupdate
2013-08-08 08:30:26 -07:00
Raymond Feng
7ce6cfc9ab
Allows connector property to be a string
2013-07-30 10:52:30 -07:00
Raymond Feng
1109f671da
Add precision/scale for sync discovery
2013-07-25 15:20:19 -07:00
Raymond Feng
dcada03c43
Add precision/scale
2013-07-25 15:06:00 -07:00
Raymond Feng
adb724e3b2
Fix the ref to dataSource
2013-07-24 22:58:57 -07:00
Ritchie
5bf2d1ff23
Add root true to remote methods
2013-07-24 17:21:35 -07:00
Raymond Feng
752aedb80d
Rename adapters to connectors
2013-07-23 14:40:44 -07:00
Raymond Feng
ac76666b7b
Set up connector from the data source
2013-07-23 13:19:35 -07:00
Raymond Feng
4df5a02676
Fix schema references
2013-07-23 12:16:12 -07:00
Raymond Feng
9b169efc8c
Set up connector/adapter when postInit is not called
2013-07-23 12:05:08 -07:00
Raymond Feng
6af4b1ba2f
More renames: schema -> dataSource, adapter -> connector
2013-07-23 11:16:43 -07:00
Raymond Feng
be21815e7b
Rename jugglingdb to loopback-data
2013-07-16 11:59:53 -07:00
Raymond Feng
12c28ce363
Fix typos
2013-07-15 10:38:54 -07:00
Raymond Feng
ef671825ff
Only flatten array/object for relational DBs
2013-07-12 19:10:42 -07:00
Raymond Feng
12199ad779
Add support to use adapter constructor for initialization
2013-07-11 09:55:26 -07:00
Raymond Feng
a6ad39ba0f
Update the discover apis to take options
2013-06-20 15:51:24 -07:00
Raymond Feng
3b731b1a12
Move the _operations={} up
2013-06-18 14:44:30 -07:00
Raymond Feng
72e8e7230f
Work around the JDB test coverage tool limitation. See https://github.com/1602/semicov
2013-06-18 12:07:13 -07:00
Ritchie
d442c40f25
Rename discoverModels to discoverModelDefinitions
2013-06-17 11:43:20 -07:00