loopback-datasource-juggler/lib
Miroslav Bajtoš 78c5b12740
feat: add DataSource.deleteAllModels() API
When writing tests, for performance reasons we often want to reuse
the same data-source instance for many tests suites. At the same time,
we want to keep such test suites independent and allow them to reuse
the same model name for different model classes.

Juggler does support redefinition of a model with the same name.

This change is adding a new API called that allows tests to remove all
old models before creating new ones. This API would be typically
called from a `before` hook.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-07-18 17:56:41 +02:00
..
connectors chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kvao chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
browser.depd.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
dao.js Fix "access" hook for unoptimized "near" queries 2019-05-14 09:17:54 +02:00
datasource.js feat: add DataSource.deleteAllModels() API 2019-07-18 17:56:41 +02:00
date-string.js Fix DateString ctor to accept DateString instances 2019-05-13 15:21:00 +02:00
geo.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
hooks.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
include.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
include_utils.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
introspection.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
jutil.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
list.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
mixins.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-builder.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-definition.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-utils.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
observer.js feat: after operation hook in case of errors 2019-05-31 17:12:42 +02:00
relation-definition.js Fix for #1724 - Added options to attribute updates (#1725) 2019-05-27 09:49:46 -04:00
relations.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
scope.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
transaction.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
types.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
utils.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
validations.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00