SQLite in memory database shared cache and multiple connections

232 views
Skip to first unread message

Daine Mamacos

unread,
Dec 21, 2012, 8:32:36 AM12/21/12
to xer...@googlegroups.com
Hi,
I've got the following code:
         Class.forName("org.sqlite.JDBC");
         
         SQLiteConfig config = new SQLiteConfig();
         config.setSharedCache(true);
         
         conn = DriverManager.getConnection("jdbc:sqlite::memory:", config.toProperties());

I can't seem to get multiple connections to the same in memory database. It just seems to make a new one every time. I've done this with the C API, is this possible with Xerial?

Thanks
Daine.

grace

unread,
Dec 21, 2012, 10:17:11 AM12/21/12
to xer...@googlegroups.com
 
Thanks
Daine.
Reply all
Reply to author
Forward
0 new messages