O well, read-only?
Then exclusive as well :)
----- Original Message -----
From: "Walter Meerschaert" <[EMAIL PROTECTED]>
To: <sqlite-users@sqlite.org>
Sent: Sunday, August 21, 2005 2:04 AM
Subject: Re: [sqlite] Why can i open a textfile?
I agree, since that makes error/exception handling easier. On the
subject of open(), I also would like it to have a read_only option, if
that is possible. I am not even sure that a read-only state is tracked
through the library, or if the writing attempts just fail with an file
access error.
Or is there already a way to open the database read only?
Edwin Knoppert wrote:
I haven't test on exactly 1kb file but larger and indeed an error is
shown.
May i stress again that the test should be during open() imo?
And rather not using a 2nd function to examine the db.