def test_can_parse_sql_docstring_from_rendered_template(): source = SQLQuerySource( '/* get data from {{table}} */ SELECT * FROM {{table}}') source.render({'table': 'my_table'}) assert source.doc == ' get data from my_table '
def test_can_parse_sql_docstring(): source = SQLQuerySource('/* docstring */ SELECT * FROM customers') assert source.doc == ' docstring '
def _init_source(source, kwargs): # TODO: this shoule be a FileSource return SQLQuerySource(source, **kwargs)
def _init_source(source, kwargs): return SQLQuerySource(source, **kwargs)
def _init_source(self, source): # TODO: this shoule be a FileSource return SQLQuerySource(source)
def _init_source(self, source): return SQLQuerySource(source)