Checking, if a Database exists

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Nov 20 04:15:48 CST 2008


On 11/20/08 12:08 PM, "Stefan Von Torklus" <stefanvt at gmx.de> wrote:

Hi Stefan,

> I have a strange problem.
> I create a database, the file exists. And on shutdown I close/flush the
> database.
> 
> The next start I expected, that the get_Exists()-Method of I_Disk_Location
> notices, that
> the database already exists. But it always say, that it does not.

So we talking about C++ SDK, right?
 
> I_Disk_Location* pLocation = CreateDiskLocation(filename);
                                                ^^^^^^^^^^^^ full path ?


> if(pLocation->get_Exists()) {
>     //open -> never!
> } else {
>    //create -> always! :-(
> }


> Do I missunderstood this Method?

> I don't want to use some system dependent/Non-Valentina method for this. And
> I'm sure, there is a way,
> but I can't find a suitable method for it in the valentina-interfaces
> header...
> 
> Would be glad, if someone may point me to the right direction...

exists 
    bool I_Database::get_Exists()

And I beelive we have tests on it


-- 
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