Catmandu::DBI - Catmandu tools to communicate with DBI based interfaces
# From the command line # Export data from a relational database $ catmandu convert DBI --dsn dbi:mysql:foobar --user foo --password bar --query "select * from table" # Import data into a relational database $ catmandu import JSON to DBI --data_source dbi:SQLite:mydb.sqlite < data.json # Export data from a relational database $ catmandu export DBI --data_source dbi:SQLite:mydb.sqlite to JSON # Or via a configuration file $ cat catmandu.yml --- store: mydb: package: DBI options: data_source: "dbi:mysql:database=mydb" username: xyz password: xyz ... $ catmandu import JSON to mydb < data.json $ catmandu export mydb to YAML > data.yml # Export one record $ catmandu export mydb --id 012E929E-FF44-11E6-B956-AE2804ED5190 to JSON > record.json # Count the number of records $ catmandu count mydb # Delete data $ catmandy delete mydb
Catmandu::Importer::DBI
Catmandu::Store::DBI
Nicolas Franck <nicolas.franck at ugent.be>
<nicolas.franck at ugent.be>
Patrick Hochstenbach <patrick.hochstenbach at ugent.be>
<patrick.hochstenbach at ugent.be>
Vitali Peil <vitali.peil at uni-bielefeld.de>
<vitali.peil at uni-bielefeld.de>
Nicolas Steenlant <nicolas.steenlant at ugent.be>
<nicolas.steenlant at ugent.be>
Catmandu, Catmandu::Importer , Catmandu::Store::DBI
To install Catmandu::DBI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::DBI
CPAN shell
perl -MCPAN -e shell install Catmandu::DBI
For more information on module installation, please visit the detailed CPAN module installation guide.