UNPKG

sails-hook-orm

Version:

The ORM hook from Sails core.

35 lines (22 loc) 657 B
module.exports = { code: 'E_INVALID_ADAPTER', inputs: { adapterIdentity: { example: 'sails-mysql', required: true }, details: { description: 'The more detailed error message to display.', example: 'If specified, the `defaults` property should be a dictionary.' }, datastoreIdentity: { example: 'localMysql', } }, template: '<% if (typeof datastoreIdentity !== \'undefined\') { %>'+ 'In datastore `<%= datastoreIdentity %>`: '+ '<% } else { } %>'+ 'Adapter (`<%= adapterIdentity %>`) is invalid.\n'+ '<% if (typeof details !== \'undefined\') { %> <%= details %> <% } %>' };