Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to connect to SQLite database.

by Tux (Abbot)
on Jul 16, 2014 at 12:35 UTC ( #1093862=note: print w/replies, xml ) Need Help??


in reply to How to connect to SQLite database.

Wow, I just learned that dbname= is optional in DBD::SQLite. I had to test that to believe it. And it is not even documented :)

my $dbh = DBI->connect ("DBI:SQLite:dbname=abc.db", $userid, $password +, { RaiseError => 1, AutoCommit => 0, }) or die $DBI::errstr;

would be the documented and preferred syntax. (Not that that would solve your problem though)


Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1093862]
help
Chatterbox?
[Eily]: I guess your about to turn 22 yourself then choroba :P
[Eily]: in 22 days
[ww]: 22 hrs and 22.22 minutes?
[choroba]: 22? Heh, that's... almost 22 years ago :-)
[Corion]: :-D

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-09-25 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?