Scroll to navigation

Class::DBI::Loader::SQLite(3pm) User Contributed Perl Documentation Class::DBI::Loader::SQLite(3pm)

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

2022-12-07 perl v5.36.0