Is there a way to yield an error when opening a nonexistent dbfile?

Peng Yu <[email protected]>
Newsgroups gmane.comp.db.sqlite.general
Message-ID <CABrM6wnedSp21y3w99ux-=3Szqzh8XQyu94D+eggt9aNjKmWdQ@mail.gmail.com>
Hi,

By default the command sqlite3 will just open a dbfile if it does not exist.

Suppose that I just want to perform read-only operations in a sqlite3
session, I will not need to create a non-exsitent file. Rather, I want
the sqlite3 to fail when the dbfile does not exist. Is there a way to
achieve this?

Thanks.

-- 
Regards,
Peng
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.