In Memory SQLite Capability

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kgoddard
Posts: 2
Joined: Wed 10 Jan 2007 20:00

In Memory SQLite Capability

Post by kgoddard » Wed 08 Jul 2009 14:14

Does the new SQLite provider have the capability of supporting an in-memory db? We have the requirement to load an encrypted SQLite db file directly into a memory db. We have written routines to encrypt the file and to decrypt the file directly to a stream but we need the ability to load that stream into the database component.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 09 Jul 2009 07:12

SQLite supports in-memory database (you should assing ':memory:' to the Database property). But this is a temporary empty database. You can create tables in it after connecting. This database is deleted after disconnecting.

SQLite does not support connecting to an existing in-memory database. You can save your database to a file, and then connect to the file.

Post Reply