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
Ritchie
25f2920e95
Handle separate settings and adapter objects
2013-06-17 07:54:51 -07:00
Ritchie
864135e0e4
Remove console log
2013-06-17 07:39:31 -07:00
Ritchie
473dd794ef
Fix missing settings
2013-06-14 14:22:51 -07:00
Ritchie
bf83a76eae
Fix missing connector alias
2013-06-14 13:56:44 -07:00
Ritchie
b78050410d
Merge branch 'asteroid-0.7'
...
Conflicts:
lib/datasource.js
2013-06-13 16:27:31 -07:00
Ritchie Martori
7e23393e99
Fixed memory adapter filtering + asteroid compatibility upddates
2013-06-12 15:45:31 -07:00
Raymond Feng
a47bc15e64
Make sure options is present
2013-06-11 14:56:26 -07:00
Ritchie
3628bd5be8
Fix remoteEnabled bug
2013-06-11 11:11:10 -07:00
Ritchie Martori
51d4a74264
Revert "Asteroid 0.7 updates"
...
This reverts commit c87abafec8
.
2013-06-11 09:04:37 -07:00
Ritchie Martori
c87abafec8
Asteroid 0.7 updates
2013-06-11 09:03:11 -07:00
Raymond Feng
24a1c76c59
Fix the receiver
2013-06-03 08:51:17 -07:00
Raymond Feng
567efc5698
Add discoverExportedForeignKeys
2013-06-02 23:00:11 -07:00
Raymond Feng
a2da90867f
Add sync versions of discovery
2013-06-01 23:03:25 -07:00
Raymond Feng
56af9673c1
Avoid duplicate connecting
2013-05-31 13:40:50 -07:00
Raymond Feng
9d74759f90
Improve connect/disconnect
2013-05-31 13:10:09 -07:00
Raymond Feng
7b861c2aac
Update buildModels and support associations via foreign keys
2013-05-31 10:25:11 -07:00
Raymond Feng
2d62b5ba6a
Add support to discover related schemas by foreign keys
2013-05-30 23:13:04 -07:00
Raymond Feng
ad14bd9dbc
Add more debugging info
2013-05-30 17:23:31 -07:00
Raymond Feng
8912defe8e
Enhance support for composite keys
2013-05-30 16:06:04 -07:00
Raymond Feng
d9998d8294
Update column type info
2013-05-29 10:03:01 -07:00
Raymond Feng
6255da2ae0
Fix mixin
2013-05-29 07:17:07 -07:00
Raymond Feng
dd8512bc1f
Refactor more functions into mixins
2013-05-27 22:20:43 -07:00
Ritchie Martori
50b2036511
Update remoting signatures for dao.
2013-05-24 15:10:34 -07:00
Raymond Feng
dea07f3a02
Rename adl to be ModelBuilder
2013-05-23 22:20:20 -07:00
Ritchie
a690f8d8df
Add data source attach example
2013-05-23 17:29:03 -07:00
Ritchie
1dee840de5
Add ability to attach data source to an existing model
2013-05-23 16:38:14 -07:00
Raymond Feng
2c2768e929
Fix the mapping
2013-05-23 10:46:01 -07:00
Raymond Feng
e51bd2d360
Fix the column mapping
2013-05-22 18:04:05 -07:00
Raymond Feng
31473d3add
Fix the id column name
2013-05-22 12:17:14 -07:00
Raymond Feng
5b32141e31
Start to add discoverSchema and name mapping
2013-05-22 10:41:08 -07:00
Raymond Feng
aebd7de68c
Fix the capitalize
2013-05-21 14:54:14 -07:00
Raymond Feng
0022edb774
Transform the names
2013-05-21 14:43:25 -07:00
Raymond Feng
88f174ee39
Add discoverSchema
2013-05-21 14:25:23 -07:00
Raymond Feng
fcdd8c2bca
Fix the delegation for discover
2013-05-21 12:00:16 -07:00
Raymond Feng
26230be417
Fix the discover methods
2013-05-21 11:59:16 -07:00
Raymond Feng
fca91e3400
Fix the on-demand connection
2013-05-17 16:21:12 -07:00
Raymond Feng
7caaeb2623
Fix the datasource.define
2013-05-17 14:41:04 -07:00
Raymond Feng
8263a6d71b
Start to refactor ADL and DataSource
2013-05-17 10:54:14 -07:00