The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::JESP::Driver - DB Specific stuff superclass.

apply_patch

Applies the given App::JESP::Patch to the database. Dies in case of error.

You do NOT need to implement that in subclasses.

Usage:

  $this->apply_patch( $patch );

apply_sql

Databases and their drivers vary a lot when it comes to apply SQL patches. Some of them are just fine with sending a blog of SQL to the driver, even when it contains multiple statements and trigger or procedure, function definitions.

Some of them require a specific implementation.

This is the default implementation that just use the underlying DB connection to send the patch SQL content.