Database in RAM only?

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jan 30 11:49:37 CST 2009


On 1/30/09 7:44 PM, "Brendan Murphy" <bmurphy at truenorthsoftware.com> wrote:

Hi Brendan,

> I want to create a database in memory only and I am having
> problems.
> 
> I do something like...
> 
> db = new RequirementsDatabase(EVStorageType.kRAM)
> 
> Within the RequirementsDatabase class I call the VDatabase
> constructor passing on the storage type and then I create the
> tables. For example...
> 
> daTable = new DocumentAttributes
> 
> The problem I run into is when I try to add a record with the
> AddRecord method, it hard crashes. The only way to make it operate
> is to associate a file with it by using the "create" method on the
> database and I have to associate it with a temporary file.
> 
> Am I misunderstanding this? Should I not be able to create
> database that only exists in memory and not have to associate it
> with file in order to get it to work?

Well, new Database create only isntanse of class.
But not FILES of db on disk or RAM.

So yes its important to call db.Create()

What happens if you do
    db.Create( "fake name" )
?

Does V4RB crate any disk files?
I think it should not create disk files because they will be created in RAM.

Name of course will be ignored.


> REALbasic: 2008R5.1
> Valentina: 4.0rc1
> Mac OS X: 10.5.6

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list