driver-interface
Version:
Standardized interface for common functionality, expressed in layers. Covers communication with databases, hardware, web services, and more.
40 lines (23 loc) • 938 B
JavaScript
module.exports = {
friendlyName: 'Begin transaction',
description: 'Begin a new database transaction on the provided connection.',
inputs: {
connection:
require('../../constants/connection.input'),
meta:
require('../../constants/meta.input')
},
exits: {
success: {
description: 'The transaction was successfully started.',
extendedDescription: 'Until it is committed, rolled back, or times out, subsequent queries run on this connection will be transactional. They will not have any true effect on the database until the transaction is committed, and will not affect queries made on other connections.',
outputVariableName: 'report',
outputDescription: 'The `meta` property is reserved for custom driver-specific extensions.',
outputExample: {
meta: '==='
}
},
badConnection:
require('../../constants/badConnection.exit')
}
};