-
Notifications
You must be signed in to change notification settings - Fork 54
/
functioncode.go
37 lines (34 loc) · 1.41 KB
/
functioncode.go
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
package protocol
// FunctionCode represents a function code.
type FunctionCode int16
// FunctionCode constants.
const (
fcNil FunctionCode = 0
FcDDL FunctionCode = 1
fcInsert FunctionCode = 2
fcUpdate FunctionCode = 3
fcDelete FunctionCode = 4
fcSelect FunctionCode = 5
fcSelectForUpdate FunctionCode = 6
fcExplain FunctionCode = 7
fcDBProcedureCall FunctionCode = 8
fcDBProcedureCallWithResult FunctionCode = 9
fcFetch FunctionCode = 10
fcCommit FunctionCode = 11
fcRollback FunctionCode = 12
fcSavepoint FunctionCode = 13
fcConnect FunctionCode = 14
fcWriteLob FunctionCode = 15
fcReadLob FunctionCode = 16
fcPing FunctionCode = 17 //reserved: do not use
fcDisconnect FunctionCode = 18
fcCloseCursor FunctionCode = 19
fcFindLob FunctionCode = 20
fcAbapStream FunctionCode = 21
fcXAStart FunctionCode = 22
fcXAJoin FunctionCode = 23
)
// IsProcedureCall returns true if the function code is a procedure call, false otherwise.
func (fc FunctionCode) IsProcedureCall() bool {
return fc == fcDBProcedureCall
}