[sqlite] It might be nice to have sqlite3_attach() and sqlite3_detach().

2015-03-19 Thread Scott Hess
On Thu, Mar 19, 2015 at 10:30 AM, Richard Hipp wrote: > On 3/18/15, Scott Hess wrote: >> I'm thinking I could use something like: >> >> SQLITE_API int sqlite3_attach(sqlite3* db, const char* zPath, const >> char* dbname); >> SQLITE_API int sqlite3_detach(sqlite3* db, const char* dbname); >> >>

[sqlite] It might be nice to have sqlite3_attach() and sqlite3_detach().

2015-03-19 Thread Richard Hipp
On 3/18/15, Scott Hess wrote: > I'm thinking I could use something like: > > SQLITE_API int sqlite3_attach(sqlite3* db, const char* zPath, const > char* dbname); > SQLITE_API int sqlite3_detach(sqlite3* db, const char* dbname); > > Right now, I have a helper in Chromium which does "ATTACH

[sqlite] It might be nice to have sqlite3_attach() and sqlite3_detach().

2015-03-18 Thread Scott Hess
I'm thinking I could use something like: SQLITE_API int sqlite3_attach(sqlite3* db, const char* zPath, const char* dbname); SQLITE_API int sqlite3_detach(sqlite3* db, const char* dbname); Right now, I have a helper in Chromium which does "ATTACH DATABASE ? AS ?". This works, but AFAICT this