Release 0.14.0
Pre-release
Pre-release
Two major breaking changes in this release:
Ravel#registerSimpleParameter
is nowRavel#registerParameter
- Transaction functionality now supports the opening and closing of connections to specific database providers, rather than all of them every time. This will improve efficiency in applications connecting to several different databases. Examples of change are below:
before:
const before = Resource.before;
class MyResource extends Resource {
...
@before('transaction')
getAll(ctx) {
...
}
}
after:
const transaction = Resource.transaction;
class MyResource extends Resource {
...
// open all connections
@transaction()
getAll(ctx) {
...
}
// open some connections
@transaction('mysql', 'rethinkdb')
get(ctx) {
...
}
}