reorganized the shared directory to have a top-level "selene" package that all other shared packages will be included in.
parent
f199e0969b
commit
d168d25717
|
@ -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')
|
||||
|
|
@ -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')
|
||||
|
|
@ -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)
|
||||
"""
|
Loading…
Reference in New Issue