DBIx-Class
view release on metacpan or search on metacpan
lib/DBIx/Class/Storage.pm view on Meta::CPAN
sub debugcb {
my $self = shift;
if ($self->debugobj->can('callback')) {
return $self->debugobj->callback(@_);
}
}
=head2 cursor_class
The cursor class for this Storage object.
=cut
=head2 deploy
Deploy the tables to storage (CREATE TABLE and friends in a SQL-based
Storage class). This would normally be called through
L<DBIx::Class::Schema/deploy>.
=cut
sub deploy { die "Virtual method!" }
=head2 connect_info
The arguments of C<connect_info> are always a single array reference,
and are Storage-handler specific.
This is normally accessed via L<DBIx::Class::Schema/connection>, which
encapsulates its argument list in an arrayref before calling
C<connect_info> here.
=cut
sub connect_info { die "Virtual method!" }
=head2 select
Handle a select statement.
=cut
sub select { die "Virtual method!" }
=head2 insert
Handle an insert statement.
=cut
sub insert { die "Virtual method!" }
=head2 update
Handle an update statement.
=cut
sub update { die "Virtual method!" }
=head2 delete
Handle a delete statement.
=cut
sub delete { die "Virtual method!" }
=head2 select_single
Performs a select, fetch and return of data - handles a single row
only.
=cut
sub select_single { die "Virtual method!" }
=head2 columns_info_for
Returns metadata for the given source's columns. This
is *deprecated*, and will be removed before 1.0. You should
be specifying the metadata yourself if you need it.
=cut
sub columns_info_for { die "Virtual method!" }
=head1 ENVIRONMENT VARIABLES
=head2 DBIC_TRACE
If C<DBIC_TRACE> is set then trace information
is produced (as when the L</debug> method is set).
If the value is of the form C<1=/path/name> then the trace output is
written to the file C</path/name>.
This environment variable is checked when the storage object is first
created (when you call connect on your schema). So, run-time changes
to this environment variable will not take effect unless you also
re-connect on your schema.
=head2 DBIC_TRACE_PROFILE
If C<DBIC_TRACE_PROFILE> is set, L<DBIx::Class::Storage::Debug::PrettyTrace>
will be used to format the output from C<DBIC_TRACE>. The value it
is set to is the C<profile> that it will be used. If the value is a
filename the file is read with L<Config::Any> and the results are
used as the configuration for tracing. See L<SQL::Abstract::Tree/new>
for what that structure should look like.
=head2 DBIX_CLASS_STORAGE_DBI_DEBUG
Old name for DBIC_TRACE
=head1 SEE ALSO
L<DBIx::Class::Storage::DBI> - reference storage implementation using
DBI and a subclass of SQL::Abstract::Classic ( or similar )
( run in 0.570 second using v1.01-cache-2.11-cpan-39bf76dae61 )