1 package DBIx::DBSchema::DBD::Sybase;
4 use vars qw($VERSION @ISA %typemap);
5 use DBIx::DBSchema::DBD;
8 @ISA = qw(DBIx::DBSchema::DBD);
15 # Return this from uncompleted driver calls.
20 DBIx::DBSchema::DBD::Sybase - Sybase database driver for DBIx::DBSchema
27 $dbh = DBI->connect('dbi:Sybase:dbname=database', 'user', 'pass');
28 $schema = new_native DBIx::DBSchema $dbh;
32 This module implements a Sybase driver for DBIx::DBSchema.
38 my($proto, $dbh, $table) = @_;
40 my $sth = $dbh->prepare("sp_columns \@table_name=$table")
43 $sth->execute or die $sth->errstr;
48 ($_->{'NULLABLE'} ? 1 : ''),
53 } @{ $sth->fetchall_arrayref({}) };
58 return("StubbedPrimaryKey");
65 'stubfirstUniqueIndex' => ['stubfirstUniqueIndex'],
66 'stubtwostUniqueIndex' => ['stubtwostUniqueIndex']
69 return ( { %stubList } );
76 'stubfirstIndex' => ['stubfirstUniqueIndex'],
77 'stubtwostIndex' => ['stubtwostUniqueIndex']
80 return ( { %stubList } );
86 Charles Shapiro <charles.shapiro@numethods.com>
87 (courtesy of Ivan Kohler <ivan-dbix-dbschema@420.am>)
89 Mitchell Friedman <mitchell.friedman@numethods.com>
93 Copyright (c) 2001 Charles Shapiro, Mitchell J. Friedman
94 Copyright (c) 2001 nuMethods LLC.
96 This program is free software; you can redistribute it and/or modify it under
97 the same terms as Perl itself.
103 Most of this is not implemented.
105 the "columns" method works; primary key, unique and index do not yet. Please
106 send any patches to all three addresses listed above.
110 L<DBIx::DBSchema>, L<DBIx::DBSchema::DBD>, L<DBI>, L<DBI::DBD>