SYNOPSIS

  use Class::DBI::Loader;

  # $loader is a Class::DBI::Loader::SQLite
  my $loader = Class::DBI::Loader->new(
    dsn       => "dbi:SQLite:dbname=/path/to/dbfile",
    namespace => "Data",
  );
  my $class = $loader->find_class('film'); # $class => Data::Film
  my $obj = $class->retrieve(1);

DESCRIPTION

Multi-column primary keys are supported. It's also fine to define multi-column foreign keys, but they will be ignored because Class::DBI does not support them.

See Class::DBI::Loader, Class::DBI::Loader::Generic.

RELATED TO Class::DBI::Loader::SQLite…

Class::DBI::Loader, Class::DBI::Loader::Generic