def import_from_sqlite(<EOL>filename_or_connection,<EOL>table_name="<STR_LIT>",<EOL>query=None,<EOL>query_args=None,<EOL>*args,<EOL>**kwargs<EOL>):
source = get_source(filename_or_connection)<EOL>connection = source.fobj<EOL>cursor = connection.cursor()<EOL>if query is None:<EOL><INDENT>if not _valid_table_name(table_name):<EOL><INDENT>raise ValueError("<STR_LIT>".format(table_name))<EOL><DEDENT>query = SQL_SELECT_ALL.format(table_name=table_name)<EOL><DEDENT>if query_args is None:<EOL><INDENT>query_args = tuple()<EOL><DEDENT>table_rows = list(cursor.execute(query, query_args))  <EOL>header = [six.text_type(info[<NUM_LIT:0>]) for info in cursor.description]<EOL>cursor.close()<EOL>meta = {"<STR_LIT>": "<STR_LIT>", "<STR_LIT:source>": source}<EOL>return create_table([header] + table_rows, meta=meta, *args, **kwargs)<EOL>
Return a rows.Table with data from SQLite database.