Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Create Sample Database

For our examples we are going to use an SQLite database. It is simple to install as it comes within DBD::SQLite, its own database driver and it provide everything we need for our examples.

Actually SQLite is a very good database useful in many applications that don't require concurrent write access to the database frequently.

In order to create the sample database run examples/dbi/create_sample.pl

package My::DB;
use strict;
use warnings;

our $VERSION = '0.01';

use base qw/DBIx::Class::Schema/;

__PACKAGE__->load_classes();

1;