Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-gorm/gorm
/ isMysql
Function
isMysql
tests/helper_test.go:280–282 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
278
}
279
280
func
isMysql() bool {
281
return
os.Getenv(
"GORM_DIALECT"
) ==
"mysql"
282
}
283
284
func
mysqlVersionAtLeast(major, minor int) bool {
285
if
!isMysql() {
Callers
4
TestTableType
Function · 0.85
TestCreateFromMapWithoutPK
Function · 0.85
TestCreateFromMapWithTable
Function · 0.85
mysqlVersionAtLeast
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected