Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/librecat/catmandu-dbi
A Catmandu::Store plugin for DBI based interfaces
https://github.com/librecat/catmandu-dbi
Last synced: 4 days ago
JSON representation
A Catmandu::Store plugin for DBI based interfaces
- Host: GitHub
- URL: https://github.com/librecat/catmandu-dbi
- Owner: LibreCat
- License: other
- Created: 2013-06-12T12:31:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T13:07:01.000Z (3 months ago)
- Last Synced: 2024-08-24T14:12:26.912Z (3 months ago)
- Language: Perl
- Size: 273 KB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Catmandu::DBI - Catmandu tools to communicate with DBI based interfaces
# SYNOPSIS
# 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# MODULES
[Catmandu::Importer::DBI](https://metacpan.org/pod/Catmandu%3A%3AImporter%3A%3ADBI)
[Catmandu::Store::DBI](https://metacpan.org/pod/Catmandu%3A%3AStore%3A%3ADBI)
# AUTHORS
Nicolas Franck ``
Patrick Hochstenbach ``
Vitali Peil ``
Nicolas Steenlant ``
# COPYRIGHT
Copyright 2024 - Nicolas Franck, Patrick Hochstenbach, Vitali Peil, Nicolas Steenlant
# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# SEE ALSO
[Catmandu](https://metacpan.org/pod/Catmandu), [Catmandu::Importer](https://metacpan.org/pod/Catmandu%3A%3AImporter) , [Catmandu::Store::DBI](https://metacpan.org/pod/Catmandu%3A%3AStore%3A%3ADBI)