|
DBIx::Renderer::Constants - constants for the DBI rendering framework |
DBIx::Renderer::Constants - constants for the DBI rendering framework
use DBIx::Renderer ':all';
# mandatory name
use constant TYPE_MANDNAME => ( VARCHAR(255), NOTNULL );
my $struct = [
category => [
id => { TYPE_ID },
name => { TYPE_MANDNAME },
parent_id => { INT4, INDEX },
],
];
This module defines a range of constants and helper functions for use
in writing and talking to DBI renderers. Typically you won't use this
module directly, but import ':all' from DBIx::Renderer, which passes
this module's exports along.
The following constants and functions are exported:
CHAR($size) VARCHAR($size)CHAR and VARCHAR, this function returns a hash element with
'DEFAULT' as its key (as every field can have only one default value)
and the actual default as its value.
TYPE_ID being a not-nullable primary
key of type int4, and TYPE_FK being a notnullable int4 used as a
foreign key into some other table.
get_types()get_attrs()get_markers()
None known so far. If you find any bugs or oddities, please do inform the author.
Marcel Grünauer <marcel@codewerk.com>
Copyright 2001 Marcel Grünauer. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1), DBI(3pm), DBIx::Renderer(3pm).
|
DBIx::Renderer::Constants - constants for the DBI rendering framework |