-
Notifications
You must be signed in to change notification settings - Fork 2
/
release-connection.js
42 lines (24 loc) · 1.04 KB
/
release-connection.js
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
40
41
42
module.exports = {
friendlyName: 'Release connection',
description: 'Release an active database connection.',
extendedDescription: 'Depending on the implementation of this driver, this might release the connection back into the pool or close it entirely. Regardless, if the provided connection has a transaction started, be sure to end the transaction by either committing it or rolling it back before releasing the connection.',
inputs: {
connection:
require('../../constants/connection.input'),
meta:
require('../../constants/meta.input')
},
exits: {
success: {
description: 'The connection was released and is no longer active.',
extendedDescription: 'The provided connection may no longer be used for any subsequent queries.',
outputVariableName: 'report',
outputDescription: 'The `meta` property is reserved for custom driver-specific extensions.',
outputExample: {
meta: '==='
}
},
badConnection:
require('../../constants/badConnection.exit')
}
};