Nano::Types - Type Library
Type Library
package main; use Nano::Types; 1;
This package provides type constraints for the Nano object persistence framework.
This package uses type constraints from:
Types::Standard
This package declares the following type constraints:
Env
This type is defined in the Nano::Types library.
Object
InstanceOf["Nano::Env"]
# given: synopsis use Nano::Env; my $env = Nano::Env->new;
KeyVal
InstanceOf["Zing::KeyVal"]
# given: synopsis use Zing::KeyVal; my $domain = Zing::KeyVal->new(name => 'user-12345');
Nano
InstanceOf["Nano"]
# given: synopsis use Nano; my $nano = Nano->new;
Node
InstanceOf["Nano::Node"]
# given: synopsis use Nano::Node; my $node = Nano::Node->new;
Nodes
InstanceOf["Nano::Nodes"]
# given: synopsis use Nano::Nodes; my $nodes = Nano::Nodes->new;
Search
InstanceOf["Nano::Search"]
# given: synopsis use Nano::Nodes; use Nano::Search; my $search = Nano::Search->new(nodes => Nano::Nodes->new);
Stash
ConsumerOf["Nano::Stash"]
# given: synopsis package Example::Stash; use Moo; extends 'Nano::Node'; with 'Nano::Stash'; package main; my $stash = Example::Stash->new;
Table
InstanceOf["Zing::Table"]
# given: synopsis use Zing::Table; my $lookup = Zing::Table->new(name => 'users');
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Nano, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nano
CPAN shell
perl -MCPAN -e shell install Nano
For more information on module installation, please visit the detailed CPAN module installation guide.