reorganized the shared directory to have a top-level "selene" package that all other shared packages will be included in.

pull/34/head
Chris Veilleux 2019-01-29 11:11:18 -06:00
parent f199e0969b
commit d168d25717
16 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
from dataclasses import dataclass
from os import path
from selene_util.db import DatabaseQuery, fetch
from selene.util.db import DatabaseQuery, fetch
SQL_DIR = path.join(path.dirname(__file__), 'sql')

View File

@ -2,7 +2,7 @@ from dataclasses import dataclass
from os import path
from typing import List
from selene_util.db import DatabaseQuery, fetch
from selene.util.db import DatabaseQuery, fetch
SQL_DIR = path.join(path.dirname(__file__), 'sql')

View File

@ -1,7 +1,7 @@
"""Utility code for interacting with a database.
Example Usage:
from selene_util.db import get_sql_from_file, mycroft_db_ro
from util.db import get_sql_from_file, mycroft_db_ro
sql = get_sql_from_file(<fully qualified path to .sql file>)
query_result = mycroft_db_ro.execute_sql(sql)
"""