astrodbtoolkit / astrodb_utils

https://astrodb-utils.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

make generic ingest function #69

Open kelle opened 3 months ago

kelle commented 3 months ago

David wants to write something like this:

def ingest_data(db, table_object, data_dict):
   data_obj = Table(**data_dict)
   with db.session as session:
            session.add(dict_obj)
            session.commit()

Related/Duplicate of #43