File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22# This file is autogenerated by pip-compile with Python 3.12
33# by the following command:
44#
5- # pip-compile requirements.in
5+ # pip-compile --pre requirements.in
66#
77asgiref == 3.9.1
88 # via flask
Original file line number Diff line number Diff line change 11from sqlalchemy import create_engine
22from sqlalchemy .orm import sessionmaker
33
4+
45def get_engine (db_path : str ):
56 return create_engine (f"sqlite:///{ db_path } " , echo = False )
67
8+
79def get_session (engine ):
810 Session = sessionmaker (bind = engine )
911 return Session ()
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class Data(Base):
1717 name = Column (String , nullable = False )
1818 native_file_name = Column (String , nullable = False )
1919 viewable_file_name = Column (String , nullable = False )
20- binary_light_viewable = Column (String , nullable = True )
20+ binary_light_viewable = Column (String , nullable = True )
2121 geode_object = Column (String , nullable = False )
2222 input_files = Column (JSON , nullable = True )
2323 created_at = Column (DateTime , default = datetime .now )
You can’t perform that action at this time.
0 commit comments