MCPcopy
hub / github.com/go-gorm/gorm / getSetSQL

Function getSetSQL

tests/connection_test.go:38–45  ·  view source on GitHub ↗
(driverName string)

Source from the content-addressed store, hash-verified

36}
37
38func getSetSQL(driverName string) (string, string) {
39 switch driverName {
40 case mysql.Dialector{}.Name():
41 return "SET @testName := ?", "SELECT @testName"
42 default:
43 return "", ""
44 }
45}

Callers 1

TestWithSingleConnectionFunction · 0.85

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected