MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / isDML

Function isDML

IceFireDB-SQLProxy/internal/mysql/p2p.go:163–175  ·  view source on GitHub ↗
(sql string)

Source from the content-addressed store, hash-verified

161}
162
163func isDML(sql string) bool {
164 prefix := sql
165 if len(sql) > 20 {
166 prefix = sql[:20]
167 }
168 prefix = strings.ToUpper(prefix)
169 for _, v := range DMLSQL {
170 if strings.HasPrefix(prefix, v) {
171 return true
172 }
173 }
174 return false
175}
176
177func broadcast(sql string, accessType string) {
178 if !isDML(sql) {

Callers 3

HandleQueryMethod · 0.70
HandleStmtExecuteMethod · 0.70
broadcastFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected