NAME

Doodle::Schema

ABSTRACT

Doodle Schema Class

SYNOPSIS

use Doodle;
use Doodle::Schema;

my $ddl = Doodle->new;

my $self = Doodle::Schema->new(
  name => 'app',
  doodle => $ddl
);

DESCRIPTION

This package provides a representation of a database.

INTEGRATES

This package integrates behaviors from:

Doodle::Schema::Helpers

LIBRARIES

This package uses type constraints from:

Doodle::Library

ATTRIBUTES

This package has the following attributes:

data

data(Data)

This attribute is read-only, accepts (Data) values, and is optional.

doodle

doodle(Doodle)

This attribute is read-only, accepts (Doodle) values, and is required.

name

name(Str)

This attribute is read-only, accepts (Str) values, and is required.

temporary

temporary(Bool)

This attribute is read-only, accepts (Bool) values, and is optional.

METHODS

This package implements the following methods:

create

create(Any %args) : Command

Registers a schema create and returns the Command object.

create example #1
# given: synopsis

my $create = $self->create;

delete

delete(Any %args) : Command

Registers a schema delete and returns the Command object.

delete example #1
# given: synopsis

my $delete = $self->delete;

table

table(Str $name, Any @args) : Table

Returns a new Table object.

table example #1
# given: synopsis

my $table = $self->table('users');

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