NAME

RackTables::Types - Common RackTables types

SYNOPSIS

# in a DBIx::Class view definition
use RackTables::Types;

__PACKAGE__->add_columns(
    id        => { RT_UNSIGNED },
    name      => { RT_STRING, is_nullable => 0 },
    ...
}

DESCRIPTION

This modules defines common RackTables types, in order to ease writing DBIx::Class view definitions.

TYPES

The following types are defined and exported:

  • RT_INTEGER

    integer, non-nullable

  • RT_UNSIGNED

    unsigned integer, non-nullable

  • RT_STRING

    string, default size of 255 characters (override with a size attribute)

AUTHOR

Sebastien Aperghis-Tramoni