[libcatmandu-perl] 88/101: Pod

Jonas Smedegaard dr at jones.dk
Tue Feb 23 13:43:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcatmandu-perl.

commit 2ef9b79692d2c82dace6755d7a25bb2f003deac7
Author: Patrick Hochstenbach <patrick.hochstenbach at ugent.be>
Date:   Thu Feb 11 11:45:01 2016 +0100

    Pod
---
 Build.PL              |  4 ++--
 lib/Catmandu/Store.pm | 13 +++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/Build.PL b/Build.PL
index cbffea6..92b979b 100644
--- a/Build.PL
+++ b/Build.PL
@@ -1,5 +1,5 @@
 
-# This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.041.
+# This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.039.
 use strict;
 use warnings;
 
@@ -15,7 +15,7 @@ my %module_build_args = (
   },
   "dist_abstract" => "a data toolkit",
   "dist_author" => [
-    "Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>"
+    "Nicolas Steenlant <nicolas.steenlant\@ugent.be>"
   ],
   "dist_name" => "Catmandu",
   "dist_version" => "1.00_02",
diff --git a/lib/Catmandu/Store.pm b/lib/Catmandu/Store.pm
index de2afca..bb0822e 100644
--- a/lib/Catmandu/Store.pm
+++ b/lib/Catmandu/Store.pm
@@ -79,9 +79,18 @@ Catmandu::Store - Namespace for packages that can make data persistent
 
 =head1 SYNOPSIS
 
-    use Catmandu::Store::DBI;
+    # From the command line
 
-    my $store = Catmandu::Store::DBI->new(data_source => 'DBI:mysql:database=test');
+    $ catmandu import JSON into MongoDB --database_name 'bibliography' < data.json
+
+    $ catmandu export MongoDB --database_name 'bibliography' to YAML
+    $ catmandu export MongoDB --database_name 'bibliography' --query '{"PublicationYear": "1937"}'
+    $ catmandu count  MongoDB --database_name 'bibliography' --query '{"PublicationYear": "1937"}'
+
+    # From Perl
+    use Catmandu;
+
+    my $store = Catmandu->store('MongoDB',database_name => 'bibliography');
 
     my $obj1 = $store->bag->add({ name => 'Patrick' });
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list