Is it possible to 'attach' a second database?

Issue #68 closed
Alexei Vinidiktov created an issue

I need to split my app's data into two databases: one stores the app's content, and the other stores the user's stats.

Is it possible to attach a second database and query the main and second database using one connection (as if they were one database)?

http://www.sqlite.org/lang_attach.html

Comments (2)

  1. Guillermo GutiƩrrez

    I haven't tested it, but it should work as long as you don't have duplicated table names and you don't close the connection.

  2. Log in to comment