1 package DBIx::DBSchema::DBD;
10 DBIx::DBSchema::DBD - DBIx::DBSchema Driver Writer's Guide
14 perldoc DBIx::DBSchema::DBD
18 Drivers should be named DBIx::DBSchema::DBD::DatabaseName, where DatabaseName
19 is the same as the DBD:: driver for this database. Drivers should implement the
20 following class methods:
24 =item columns CLASS DBI_DBH TABLE
26 Given an active DBI database handle, return a listref of listrefs (see
27 L<perllol>), each containing five elements: column name, column type,
28 nullability, column length, and a field reserved for driver-specific use.
30 =item primary_key CLASS DBI_DBH TABLE
32 Given an active DBI database handle, return the primary key for the specified
35 =item unique CLASS DBI_DBH TABLE
37 Given an active DBI database handle, return a hashref of unique indices. The
38 keys of the hashref are index names, and the values are arrayrefs which point
39 a list of column names for each. See L<perldsc/"HASHES OF LISTS"> and
40 L<DBIx::DBSchema::ColGroup>.
42 =item index CLASS DBI_DBH TABLE
44 Given an active DBI database handle, return a hashref of (non-unique) indices.
45 The keys of the hashref are index names, and the values are arrayrefs which
46 point a list of column names for each. See L<perldsc/"HASHES OF LISTS"> and
47 L<DBIx::DBSchema::ColGroup>.
53 Ivan Kohler <ivan-dbix-dbschema@420.am>
57 Copyright (c) 2000 Ivan Kohler
58 Copyright (c) 2000 Mail Abuse Prevention System LLC
60 This program is free software; you can redistribute it and/or modify it under
61 the same terms as Perl itself.
67 L<DBIx::DBSchema>, L<DBIx::DBSchema::DBD::mysql>, L<DBIx::DBSchema::DBD::Pg>,
68 L<DBIx::DBSchema::ColGroup>, L<DBI>, L<DBI::DBD>, L<perllol>,
69 L<perldsc/"HASHES OF LISTS">