Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^8: DBI placeholders for spatial data

by afoken (Chancellor)
on Jun 27, 2021 at 01:50 UTC ( [id://11134360]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /tmp>env - perl -MDBI -e 'DBI->connect("DBD:MariaDB","","",{PrintError
    +=>1})'
    Can't connect to data source 'DBD:MariaDB' because I can't work out wh
    +at driver to use (it doesn't seem to contain a 'dbi:driver:' prefix a
    +nd the DBI_DRIVER env var is not set) at -e line 1.
    
  2. or download this
    $dbh = DBI->connect($data_source, $user, $pass, $driver);
    
  3. or download this
    /tmp>env - DBI_DRIVER=NON::SENSE perl -MDBI -e 'DBI->connect("DBD:Mari
    +aDB","","",{PrintError=>1})'
    install_driver(NON::SENSE) failed: Can't locate DBD/NON/SENSE.pm in @I
    +NC (you may need to install the DBD::NON::SENSE module) (@INC contain
    +s: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/ven
    +dor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/per
    +l5 .) at (eval 5) line 3.
    Perhaps a module that DBD::NON::SENSE requires hasn't been fully insta
    +lled
     at -e line 1.
    
  4. or download this
    /tmp>env - perl -MDBI -e 'print DBI->connect("dbi:SQLite:foo","","",{P
    +rintError=>1})->{PrintError}'
    1
    ...
    1
    /tmp>env - DBI_DRIVER=SQLite perl -MDBI -e 'print DBI->connect("DBD:Ma
    +riaDB:foo","","",{})->{PrintError}'
    1
    
  5. or download this
    /tmp>env - perl -MDBI -e 'print DBI->connect("DBD:MariaDB:foo","","","
    +SQLite")->{PrintError}'
    DBI->connect using 'old-style' syntax is deprecated and will be an err
    +or in future versions at -e line 1.
    ...
    /tmp>env - perl -MDBI -e 'print DBI->connect("DBD:MariaDB:foo","","","
    +SQLite")->{PrintError}+0'
    DBI->connect using 'old-style' syntax is deprecated and will be an err
    +or in future versions at -e line 1.
    0
    
  6. or download this
    /tmp>env - perl -MDBI -e 'print DBI->connect("DBD:MariaDB:foo","","")'
    Can't connect to data source 'DBD:MariaDB:foo' because I can't work ou
    +t what driver to use (it doesn't seem to contain a 'dbi:driver:' pref
    +ix and the DBI_DRIVER env var is not set) at -e line 1.
    
  7. or download this
    /tmp>perl -MDBI -e 'print $DBI::VERSION'
    1.636
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11134360]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found