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

Function isDML

IceFireDB-SQLite/internal/sqlite/db.go:235–247  ·  view source on GitHub ↗
(sql string)

Source from the content-addressed store, hash-verified

233}
234
235func isDML(sql string) bool {
236 prefix := sql
237 if len(sql) > 20 {
238 prefix = sql[:20]
239 }
240 prefix = strings.ToUpper(prefix)
241 for _, v := range DMLSQL {
242 if strings.HasPrefix(prefix, v) {
243 return true
244 }
245 }
246 return false
247}
248
249func Broadcast(sql string) {
250 if !isDML(sql) {

Callers 2

BroadcastFunction · 0.70
TestIsDMLFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestIsDMLFunction · 0.56