rformassspectrometry / CompoundDb

Creating and using (chemical) compound databases
https://rformassspectrometry.github.io/CompoundDb/index.html
17 stars 16 forks source link

Avoid storing the DB connection within the object #112

Open jorainer opened 6 months ago

jorainer commented 6 months ago

When the database connection is used/stored directly within the object, we can not save/load the object. Instead of keeping the active database connection within the object it might be better to use, similar to the MsBackendOfflineSql just the connection information and connect to the database on demand.