Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/andialbrecht/sqlparse
/ f
Function
f
tests/test_grouping.py:412–413 ·
view source on GitHub ↗
(sql)
Source
from the content-addressed store, hash-verified
410
411
def
test_statement_get_type():
412
def
f(sql):
413
return
sqlparse.parse(sql)[0]
414
415
assert f(
'select * from foo'
).get_type() ==
'SELECT'
416
assert f(
'update foo'
).get_type() ==
'UPDATE'
Callers
15
test_strip_ws
Method · 0.85
test_preserve_ws
Method · 0.85
test_notransform_of_quoted_crlf
Method · 0.85
test_stmts
Method · 0.85
test_keywords
Method · 0.85
test_keywords_between
Method · 0.85
test_parenthesis
Method · 0.85
test_where
Method · 0.85
test_join
Method · 0.85
test_identifier_list
Method · 0.85
test_identifier_list_with_wrap_after
Method · 0.85
test_identifier_list_comment_first
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected