Daisuke Maki > Class-DBI-Loader-0.34 > Class::DBI::Loader::SQLite

Download:
Class-DBI-Loader-0.34.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  9
Open  5
View/Report Bugs
Module Version: 0.30   Source  

NAME ^

Class::DBI::Loader::SQLite - Class::DBI::Loader SQLite Implementation.

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.

SEE ALSO ^

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

syntax highlighting: