NAME

andel - Oneliner Mandel magic

SYNOPSIS

perl -Mandel=MyModel -E'say c("users", j shift)->in_storage' '{"name":"joe"}'
perl -Mandel=MyModel -E'say c("users", { name => "joe" })->in_storage'
perl -Mandel=MyModel,db_name -E'say c("users")->count'
perl -Mandel=MyModel,mongodb://hostname/db_name -E'say c("users")->count'

EXPORTED FUNCTIONS

c

$collection = c("collection_name");
$obj = c("collection_name", \%create_args);

Alias for

$mandel->collection("collection_name");

Or

$mandel->collection("collection_name")->create(\%create_args)->save;

j

See "j" in Mojo::JSON.

METHODS

import

See "SYNOPSIS".

AUTHOR

Jan Henning Thorsen - jhthorsen@cpan.org