Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlyingFeather/DEA-SQL
/ isValidSQL
Function
isValidSQL
evaluation/test-suite-sql-eval/evaluation.py:435–442 ·
view source on GitHub ↗
(sql, db)
Source
from the content-addressed store, hash-verified
433
434
435
def
isValidSQL(sql, db):
436
conn = sqlite3.connect(db)
437
cursor = conn.cursor()
438
try
:
439
cursor.execute(sql)
440
except
:
441
return
False
442
return
True
443
444
445
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