Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlyingFeather/DEA-SQL
/ isValidSQL
Function
isValidSQL
single_eval.py:436–443 ·
view source on GitHub ↗
(sql, db)
Source
from the content-addressed store, hash-verified
434
435
436
def
isValidSQL(sql, db):
437
conn = sqlite3.connect(db)
438
cursor = conn.cursor()
439
try
:
440
cursor.execute(sql)
441
except
:
442
return
False
443
return
True
444
445
446
def
print_formated_s(row_name, l, element_format):
Callers
nothing calls this directly
Calls
1
execute
Method · 0.45
Tested by
no test coverage detected