-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathops.go
28 lines (25 loc) · 857 Bytes
/
ops.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
package sqltracing
// SQLOp is the name of an sql operation.
type SQLOp string
// Defines the names of SQL operations.
// These constants are used to name the tracing spans for the related SQL
// operations.
const (
OpSQLPrepare SQLOp = "sql-prepare"
OpSQLConnExec SQLOp = "sql-conn-exec"
OpSQLConnQuery SQLOp = "sql-conn-query"
OpSQLStmtExec SQLOp = "sql-stmt-exec"
OpSQLStmtQuery SQLOp = "sql-stmt-query"
OpSQLStmtClose SQLOp = "sql-stmt-close"
OpSQLTxBegin SQLOp = "sql-tx-begin"
OpSQLTxCommit SQLOp = "sql-tx-commit"
OpSQLTxRollback SQLOp = "sql-tx-rollback"
OpSQLRowsNext SQLOp = "sql-rows-next"
OpSQLRowsClose SQLOp = "sql-rows-close"
OpSQLPing SQLOp = "sql-ping"
OpSQLConnect SQLOp = "sql-connect"
)
// String returns the string representation of SQLOp.
func (s SQLOp) String() string {
return string(s)
}