Matthew Simon Cavalletto

NAME

DBIx::SQLEngine::Driver::NullP - Extends SQLEngine for Simple Testing

SYNOPSIS

  my $sqldb = DBIx::SQLEngine->new( 'dbi:NullP:' );
  
  $sqldb->fetch_select( 
    table => 'students' 
  );
  
  ok( $sqldb->last_query, 'select * from students' );

DESCRIPTION

This package provides a subclass of DBIx::SQLEngine which works with the DBI's DBD::NullP to provide a simple testing capability. See the "t/null.t" test script for a usage example.

Queries using the NullP driver and subclass never return any data, but do keep track of the SQL statements that are executed against them, allowing a simple way of checking whether the SQL generation code is working as expected.

Testing Interface

last_query()

Testing interface. Returns the most recent query and parameters captured by prepare_execute().

Internal Methods

prepare_execute()

Internal method. Captures the query and parameters that would have been sent to the database.

SEE ALSO

See DBIx::SQLEngine for the overall interface and developer documentation.

See DBIx::SQLEngine::Docs::ReadMe for general information about this distribution, including installation and license information.