From: Peter Rabbitson Date: Fri, 27 Aug 2010 10:49:38 +0000 (+0200) Subject: Rename SQLAHacks to SQLMaker, shuffle around files, add extensive X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d5dedbd62928f65a9071b4d9b6d56c6b663a073b;p=dbsrgits%2FDBIx-Class-Historic.git Rename SQLAHacks to SQLMaker, shuffle around files, add extensive POD. --- diff --git a/Makefile.PL b/Makefile.PL index 8fa4ddb..ce27a84 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -221,15 +221,13 @@ resources 'bugtracker' => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBIx-Class' # Deprecated/internal modules need no exposure no_index directory => $_ for (qw| lib/DBIx/Class/Admin - lib/DBIx/Class/SQLAHacks lib/DBIx/Class/PK/Auto lib/DBIx/Class/CDBICompat |); no_index package => $_ for (qw/ - DBIx::Class::SQLAHacks DBIx::Class::Storage::DBIHacks + DBIx::Class::Storage::DBIHacks /); - WriteAll(); # Re-write META.yml to _exclude_ all forced requires (we do not want to ship this) diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 72dba57..3e3f5db 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -1695,24 +1695,6 @@ this, you can also overload the C method for your schema class: return $rv; } -=head2 Setting limit dialect for SQL::Abstract::Limit - -In some cases, SQL::Abstract::Limit cannot determine the dialect of -the remote SQL server by looking at the database handle. This is a -common problem when using the DBD::JDBC, since the DBD-driver only -know that in has a Java-driver available, not which JDBC driver the -Java component has loaded. This specifically sets the limit_dialect -to Microsoft SQL-server (See more names in SQL::Abstract::Limit --documentation. - - __PACKAGE__->storage->sql_maker->limit_dialect('mssql'); - -The JDBC bridge is one way of getting access to a MSSQL server from a platform -that Microsoft doesn't deliver native client libraries for. (e.g. Linux) - -The limit dialect can also be set at connect time by specifying a -C key in the final hash as shown above. - =head2 Working with PostgreSQL array types You can also assign values to PostgreSQL array columns by passing array diff --git a/lib/DBIx/Class/SQLAHacks.pm b/lib/DBIx/Class/SQLMaker.pm similarity index 88% rename from lib/DBIx/Class/SQLAHacks.pm rename to lib/DBIx/Class/SQLMaker.pm index 31e189a..d0fbc77 100644 --- a/lib/DBIx/Class/SQLAHacks.pm +++ b/lib/DBIx/Class/SQLMaker.pm @@ -1,14 +1,35 @@ -package # Hide from PAUSE - DBIx::Class::SQLAHacks; +package DBIx::Class::SQLMaker; -# This module is a subclass of SQL::Abstract and includes a number of -# DBIC-specific workarounds, not yet suitable for inclusion into the -# SQLA core. -# It also provides all (and more than) the functionality of -# SQL::Abstract::Limit, which proved to be very hard to keep updated +=head1 NAME + +DBIx::Class::SQLMaker - An SQL::Abstract-based SQL maker class + +=head1 DESCRIPTION + +This module is a subclass of L and includes a number of +DBIC-specific workarounds, not yet suitable for inclusion into the +L core. It also provides all (and more than) the functionality +of L, see L for +more info. + +Currently the enhancements to L are: + +=over + +=item * Support for C statements (via extended C support) + +=item * Support of functions in C