in reply to Determining if SQLite db exists
Hi Tony
If you're looking for a solution where the connect() returns a "Database file does not exist" instead of checking for the existance of the file yourself, then your best bet is to contact Mat Sergeant who wrote DBD::SQLite. Ask politely for the new feature using rt.cpan.org.
This is because, as others have already mentioned, that this particular feature is DBD specific. You could always subclass DBD::SQLite and write the check yourself, but I would recommend against it unless you are familiar with Perl's ways of OOP. Do *NOT* modify DBD-SQLite directly yourself as the next time you update your cpan modules, it will be overwritten.
Order of preference:
Hope this helps
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Determining if SQLite db exists
by jZed (Prior) on Feb 28, 2005 at 17:06 UTC | |
by ChemBoy (Priest) on Feb 28, 2005 at 17:29 UTC | |
by jfroebe (Parson) on Feb 28, 2005 at 17:09 UTC |