NAME
Doodle::Index
ABSTRACT
Doodle Index Class
SYNOPSIS
use Doodle;
use Doodle::Index;
use Doodle::Table;
my $ddl = Doodle->new;
my $table = Doodle::Table->new(
name => 'users',
doodle => $ddl
);
my $self = Doodle::Index->new(
table => $table,
columns => ['email', 'access_token']
);
DESCRIPTION
This package provides table index representation.
LIBRARIES
This package uses type constraints from:
ATTRIBUTES
This package has the following attributes:
columns
columns(ArrayRef[Str])
This attribute is read-only, accepts (ArrayRef[Str])
values, and is optional.
data
data(Data)
This attribute is read-only, accepts (Data)
values, and is optional.
name
name(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
table
table(Table)
This attribute is read-only, accepts (Table)
values, and is required.
METHODS
This package implements the following methods:
create
create(Any %args) : Command
Registers an index create and returns the Command object.
delete
delete(Any %args) : Command
Registers an index delete and returns the Command object.
doodle
doodle() : Doodle
Returns the associated Doodle object.
unique
unique() : Index
Denotes that the index should be created and enforced as unique and returns itself.
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".