Commit Graph

1439 Commits

Author SHA1 Message Date
Raymond Feng e7a12367da Improve the docs for model relations using diagrams
The example models are taked from:
http://guides.rubyonrails.org/association_basics.html
2013-10-29 11:00:51 -07:00
Raymond Feng 37ced0111e Merge pull request #30 from strongloop/ds-url
Support datasource/connector configuration using URL string
2013-10-28 10:58:45 -07:00
Raymond Feng 24e93248d1 Merge pull request #29 from strongloop/scope-remoting
Create remote functions for predefined scopes/relations
2013-10-27 12:59:57 -07:00
Raymond Feng 8ad0194a51 Add a relation example following Ruby on Rails active records 2013-10-27 12:55:01 -07:00
Raymond Feng 2ae0fd8804 Honor the model plural name 2013-10-25 16:25:05 -07:00
Raymond Feng 1e91c42798 Merge pull request #28 from strongloop/check-undefined
Check undefined/null data
2013-10-25 16:19:11 -07:00
Raymond Feng f3011216b5 Support datasource/connector configuration using URL string 2013-10-25 16:18:02 -07:00
Raymond Feng c3d7fd0f1c Create remote functions for predefined scopes/relations 2013-10-24 20:37:43 -07:00
Raymond Feng fc2a53562e Check undefined/null data 2013-10-24 18:43:55 -07:00
Rand McKinney f164ed6919 Merge pull request #27 from strongloop/fix-docs
Add 'plural' setting
2013-10-24 09:13:01 -07:00
Raymond Feng 0bb8055acf Add 'plural' setting 2013-10-24 09:00:11 -07:00
Raymond Feng 8a615324d0 Merge pull request #25 from strongloop/ds-attach
Fixes for data source juggler
2013-10-23 11:28:14 -07:00
Raymond Feng bcf112f042 Add index to name prop 2013-10-17 14:24:47 -07:00
Raymond Feng 32dbe9cb21 Move resolveType to ModelBuilder 2013-10-17 14:23:29 -07:00
Ritchie Martori fcb35cc3eb Fix prototype mixin bug 2013-10-11 18:37:45 -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 a9cf0567ae Merge pull request #24 from strongloop/undefined-query-value
Remove undefined values from the query object
2013-10-11 11:56:26 -07:00
Raymond Feng 9ec9f654c7 Remove undefined values from the query object 2013-10-11 11:50:00 -07:00
Raymond Feng 9b602ac52c Merge pull request #23 from strongloop/connection-error
Handle connection errors
2013-10-11 11:48:37 -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
Ritchie Martori 4568797aec Merge pull request #22 from strongloop/ee-mixin-fix
Fix EventEmitter mixin
2013-10-08 15:58:15 -07:00
Ritchie Martori 95c14fa97d Fix EventEmitter mixin 2013-10-08 15:48:17 -07:00
Raymond Feng a617f3dace Merge pull request #21 from strongloop/juggler-tidyup
Make sure foreign key properties are fully registered
2013-10-08 08:42:31 -07:00
Raymond Feng b8f94f5777 Make sure foreign key properties are fully registered 2013-10-07 18:01:31 -07:00
Raymond Feng 5518039d84 Merge pull request #20 from strongloop/juggler-tidyup
Add more tests and fix toJSON
2013-10-07 14:55:09 -07:00
Raymond Feng 0bfc362b18 Use for-in loop to support properties from the super class 2013-10-06 21:27:02 -07:00
Raymond Feng 931636eda4 Allow the id(s) to be redefined by subclass 2013-10-06 21:13:52 -07:00
Raymond Feng 294ebc1ccf Allow to reference a model as type by name 2013-10-05 11:13:10 -07:00
Raymond Feng 2f575482c0 Code clean up 2013-10-05 10:53:13 -07:00
Raymond Feng 7f170a0542 Add more tests and fix toJSON 2013-10-04 21:21:12 -07:00
Raymond Feng a8b7f048b5 Merge pull request #19 from strongloop/juggler-tidyup
Juggler tidyup
2013-10-04 15:54:11 -07:00
Raymond Feng 2a15bb917a Fix the foreign key definition 2013-10-04 15:49:13 -07:00
Raymond Feng 409d256e47 Add settings property back to the model class 2013-10-04 15:48:39 -07:00
Raymond Feng 995df9fdb3 Merge pull request #18 from strongloop/juggler-tidyup
Start to tidy up datasource-juggler implementation (WIP)
2013-10-04 14:33:13 -07:00
Raymond Feng 24d87976e8 Merge branch 'master' into juggler-tidyup
Conflicts:
	lib/model.js
2013-10-04 14:32:51 -07:00
Raymond Feng 89765ab18b Merge pull request #17 from strongloop/schemaless-save
Make sure schemaless property value is honored over __data
2013-10-04 14:28:38 -07:00
Raymond Feng 04bda5c138 Set name and settings 2013-10-04 12:54:14 -07:00
Raymond Feng ee426b63fc Reset _ids for rebuild 2013-10-04 12:41:01 -07:00
Raymond Feng 1ae9478496 Fix the columnName 2013-10-03 14:49:03 -07:00
Raymond Feng d0cdbd84ea Use super_ to call the base class 2013-10-03 09:14:24 -07:00
Raymond Feng 691743493c Fix copy of model definitions 2013-10-02 17:20:54 -07:00
Raymond Feng c2baf8f05e Export Connector class 2013-10-02 16:29:33 -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 92cd7d15a6 Add a ModelDefinition class 2013-09-20 22:22:49 -07:00
Raymond Feng 1575c87caf Make sure schemaless property value is honored over __data 2013-09-18 16:34:52 -07:00
Raymond Feng 77952d5e43 Update LDL doc for the strict mode 2013-09-16 10:59:12 -07:00
Raymond Feng 38705a42ee Merge pull request #16 from strongloop/strongloopsuite-1.0
Strongloopsuite 1.0
2013-09-13 10:56:33 -07:00
Raymond Feng 2e85f3f406 Merge pull request #15 from strongloop/SLA-506
Allow connector to report failure during initialization
2013-09-12 17:16:33 -07:00