Skip to content

Commit

Permalink
Get Row note data
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 authored and osoken committed May 30, 2024
1 parent 313428e commit 75a788e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etl/src/birdxplorer_etl/lib/sqlite/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ def init_db():
engine = create_engine("sqlite:///" + db_path)
Base.metadata.create_all(engine)

# 一時データベースのテーブル作成する
# ToDo: noteテーブル以外に必要なものを追加
if not inspect(engine).has_table("note"):
logger.info("Creating table note")
db_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..", "data", "note.db"))
logger.info(f"Initializing database at {db_path}")
engine = create_engine("sqlite:///" + db_path)

# 一時データベースのテーブル作成する
# ToDo: noteテーブル以外に必要なものを追加
if not inspect(engine).has_table("note"):
Expand Down

0 comments on commit 75a788e

Please sign in to comment.