The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Nano::Types - Type Library

ABSTRACT

Type Library

SYNOPSIS

  package main;

  use Nano::Types;

  1;

DESCRIPTION

This package provides type constraints for the Nano object persistence framework.

LIBRARIES

This package uses type constraints from:

Types::Standard

CONSTRAINTS

This package declares the following type constraints:

cursor

  Cursor

This type is defined in the Nano::Types library.

cursor parent
  Object
cursor composition
  InstanceOf["Zing::Cursor"]
cursor example #1
  # given: synopsis

  use Zing::Cursor;
  use Zing::Lookup;

  my $cursor = Zing::Cursor->new(lookup => Zing::Lookup->new(name => 'users'));

domain

  Domain

This type is defined in the Nano::Types library.

domain parent
  Object
domain composition
  InstanceOf["Zing::Domain"]
domain example #1
  # given: synopsis

  use Zing::Domain;

  my $domain = Zing::Domain->new(name => 'user-12345');

env

  Env

This type is defined in the Nano::Types library.

env parent
  Object
env composition
  InstanceOf["Zing::Env"]
env example #1
  # given: synopsis

  use Zing::Env;

  my $env = Zing::Env->new;

lookup

  Lookup

This type is defined in the Nano::Types library.

lookup parent
  Object
lookup composition
  InstanceOf["Zing::Lookup"]
lookup example #1
  # given: synopsis

  use Zing::Lookup;

  my $lookup = Zing::Lookup->new(name => 'users');

nano

  Nano

This type is defined in the Nano::Types library.

nano parent
  Object
nano composition
  InstanceOf["Nano"]
nano example #1
  # given: synopsis

  use Nano;

  my $nano = Nano->new;

node

  Node

This type is defined in the Nano::Types library.

node parent
  Object
node composition
  InstanceOf["Nano::Node"]
node example #1
  # given: synopsis

  use Nano::Node;

  my $node = Nano::Node->new;

nodes

  Nodes

This type is defined in the Nano::Types library.

nodes parent
  Object
nodes composition
  InstanceOf["Nano::Nodes"]
nodes example #1
  # given: synopsis

  use Nano::Nodes;

  my $nodes = Nano::Nodes->new;
  Search

This type is defined in the Nano::Types library.

search parent
  Object
search composition
  InstanceOf["Nano::Search"]
search example #1
  # given: synopsis

  use Nano::Nodes;
  use Nano::Search;

  my $search = Nano::Search->new(nodes => Nano::Nodes->new);

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

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".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues