-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbegin-transaction.js
More file actions
39 lines (23 loc) · 938 Bytes
/
begin-transaction.js
File metadata and controls
39 lines (23 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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')
}
};