2 FS::dbdef_column - Column object
7 $column_object = new FS::dbdef_column ( $name, $sql_type, '' );
8 $column_object = new FS::dbdef_column ( $name, $sql_type, 'NULL' );
9 $column_object = new FS::dbdef_column ( $name, $sql_type, '', $length );
10 $column_object = new FS::dbdef_column ( $name, $sql_type, 'NULL', $length );
12 $name = $column_object->name;
13 $column_object->name ( 'name' );
15 $name = $column_object->type;
16 $column_object->name ( 'sql_type' );
18 $name = $column_object->null;
19 $column_object->name ( 'NOT NULL' );
21 $name = $column_object->length;
22 $column_object->name ( $length );
24 $sql_line = $column->line;
25 $sql_line = $column->line $datasrc;
28 FS::dbdef::column objects represend columns in tables (see the
29 FS::dbdef_table manpage).
32 new Creates a new FS::dbdef_column object.
35 Returns or sets the column name.
38 Returns or sets the column type.
41 Returns or sets the column null flag.
44 Returns or sets the column length.
47 Returns an SQL column definition.
49 If passed a DBI $datasrc specifying the DBD::mysql manpage
50 or the DBD::Pg manpage, will use engine-specific syntax.
54 the FS::dbdef_table manpage, the FS::dbdef manpage, the DBI
58 $Id: dbdef_column.txt,v 1.5 1999-04-08 13:39:32 ivan Exp $
61 class for dealing with column definitions
63 ivan@sisd.com 98-apr-17
65 now methods can be used to get or set data ivan@sisd.com 98-may-
68 mySQL-specific hack for null (what should be default?)
69 ivan@sisd.com 98-jun-2
71 $Log: dbdef_column.txt,v $
72 Revision 1.5 1999-04-08 13:39:32 ivan
73 convert from pod for 1.2.0 release
74 Revision 1.3 1998/10/13 13:04:17 ivan
75 fixed doc to indicate Pg specific syntax too
77 Revision 1.2 1998/10/12 23:40:28 ivan added Pg-specific