loopback-datasource-juggler/lib
Miroslav Bajtoš 2a74bdc4de validations: support multi-key unique constraint
Modify the "unique" validator to accept additional property names to
narrow the space of rows searched for duplicates.

Example:

Consider `SiteUser` belongsTo `Site` via `siteId` foreign key.
Inside every site, the user email must be unique. It is allowed to
register the same email with multiple sites.

    SiteUser.validateUniquenessOf('email', { scopedTo: ['siteId'] });
2014-05-15 09:15:44 +02:00
..
connectors Merge 2014-05-14 13:33:46 -07:00
connector.js Use String[] for types and add test for supported types 2014-01-29 17:19:07 -08:00
dao.js Merge 2014-05-14 13:33:46 -07:00
datasource.js Correct JSDoc for discoverModelDefinitions 2014-05-06 14:18:10 -07:00
geo.js Add JSDoc for lat and lng properties. 2014-05-14 16:34:24 -07:00
hooks.js Reformat the code 2014-01-24 09:09:53 -08:00
include.js Fix bug where invalid relations in include filters would hang the server 2014-05-13 13:59:15 -04:00
introspection.js Reformat the code 2014-01-24 09:09:53 -08:00
jutil.js Refactor mixin and always redefine proxy/delegate methods 2014-02-20 17:25:07 -08:00
list.js Add hidden property support 2014-04-11 11:39:57 -07:00
model-builder.js Updates to JSDoc comments for API doc 2014-03-12 16:28:46 -07:00
model-definition.js Fix the base sql connector to correct escape id values 2014-03-24 14:56:52 -07:00
model.js Merge 2014-05-14 13:33:46 -07:00
relations.js scope-like remotable metadata for belongsTo 2014-04-08 10:30:57 +02:00
scope.js scope: improve description of shared methods 2014-04-03 09:19:06 +02:00
sql.js Fix the base sql connector to correct escape id values 2014-03-24 14:56:52 -07:00
types.js Rewrite the List class for typed array 2014-02-14 10:41:00 -08:00
utils.js Make sure __cachedRelations is not enumerable 2014-01-28 09:57:23 -08:00
validations.js validations: support multi-key unique constraint 2014-05-15 09:15:44 +02:00