Make your own free website on Tripod.com

InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: Connecting to Any Text File


Larry

InstantDB ignores the file extension. The ".prp" is just a convention.

It then uses java.util.Properties.load() to load the database properties and searches for
all known IDB properties, setting those that it doesn't find to suitable defaults.

The idea is that, even if you provide an empty properties files (or, as in this case, a
file full of non-properties), you still get a database.

Pete

----- Original Message -----
From: "Larry Kuhns" <lakuhns@sprintmail.com>
To: <instantdb@enhydra.org>
Sent: Thursday, March 29, 2001 4:39 AM
Subject: InstantDB: Connecting to Any Text File


> when making a connection to a database, is there any validation that the
> file is in fact a "prp" file and not just any text file?  I was testing the
> connection interface in an application that I am writing.  I decided to test
> making a connection to a non-idb database file and surprisingly I obtained a
> valid connection, rather than trapping an exception.
>
> I then decided to try the same thing with SQLBuilder from the samples.  I
> used the setpath.bat as the database file and during the connection here is
> what was created.
>
> setpath$db$Cols$pKey.tbl
> setpath$db$Tables$pKey.tbl
> $db$types.tbl
> setpath$db$Cols.tbl
> setpath$db$Indexes.tbl
> setpath$db$Tables.tbl
> setpath.jrl
>
> What is the procedure for verifying the file is a valid InstantDB prp file
> prior to or during a connection?
>
> Larry
>
> -----------------------------------------------------------------------------
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>


-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.