Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-sql-driver/mysql
/ Begin
Method
Begin
connection.go:138–140 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
136
}
137
138
func
(mc *mysqlConn) Begin() (driver.Tx, error) {
139
return
mc.begin(false)
140
}
141
142
func
(mc *mysqlConn) begin(readOnly bool) (driver.Tx, error) {
143
if
mc.closed.Load() {
Callers
2
TestStaleConnectionChecks
Function · 0.80
TestConcurrent
Function · 0.80
Calls
1
begin
Method · 0.95
Tested by
2
TestStaleConnectionChecks
Function · 0.64
TestConcurrent
Function · 0.64