Mark Sonnentag
Mark Sonnentag
This sounds great. Thanks for the quick reply.
Would something like that work with sqlite_orm? `make_storage( "db", make_table(...), make_table(...), ..., attach_database("another_db", "schema-name", make_table("table-name", make_column(...)) );`
Another advantage of the make_storage variant would be that you open only one database connection. Isn't the usual use case for attaching databases writing sql statements that affects all attached...
Something like: ``` auto storage = make_storage( "db", make_table(...), make_table(...), ..., attach_database("another_db", "schema-name", make_table("table-name", make_column(...)) ); //same db schema as before auto another_storage = make_storage("another_db", make_table("table-name", make_column(...)) ) ``` "another_db"...
They are not connected at all. Each make_storage call opens a connection, right? So for storage we have a connection to database "db". Database "another_db" would be attached to this...