Skip to content

Instantly share code, notes, and snippets.

@phochste
Created November 29, 2012 15:53
Show Gist options
  • Save phochste/4169957 to your computer and use it in GitHub Desktop.
Save phochste/4169957 to your computer and use it in GitHub Desktop.
Store MARC records in a MongoDB database
use Catmandu::Importer::MARC;
my $importer = Catmandu::Importer::MARC->new(file => "/foo/bar.marc", type=> "USMARC");
my $store = Catmandu::Store::MongoDB->new(database_name => 'test');
$store->bag->add_many($importer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment