MCPcopy 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
411def 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_wsMethod · 0.85
test_preserve_wsMethod · 0.85
test_stmtsMethod · 0.85
test_keywordsMethod · 0.85
test_keywords_betweenMethod · 0.85
test_parenthesisMethod · 0.85
test_whereMethod · 0.85
test_joinMethod · 0.85
test_identifier_listMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected