Skip to content

Commit

Permalink
schema._main: create schema using engine from connection
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Sep 20, 2024
1 parent c65eae0 commit ff7e4af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions omnipath_metabo/schema/_main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from sqlalchemy.ext.declarative import declarative_base


__all__ = ['Base']

Base = declarative_base()


def create(con):

Base.metadata.create_all(con.engine)

0 comments on commit ff7e4af

Please sign in to comment.