NAME

Data::Model::Driver::DBI - storage driver for DBI

SYNOPSIS

package MyDB;
use base 'Data::Model';
use Data::Model::Schema;
use Data::Model::Driver::DBI;

my $dbi_connect_options = {};
my $driver = Data::Model::Driver::DBI->new(
    dsn             => 'dbi:mysql:host=localhost:database=test',
    username        => 'user',
    password        => 'password',
    connect_options => $dbi_connect_options,
);

base_driver $driver;
install_model model_name => schema {
  ....
};

DESCRIPTION

DBD that is working now is only mysql and SQLite.

SEE ALSO

DBI, Data::Model

AUTHOR

Kazuhiro Osawa <yappo <at> shibuya <döt> pl>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 497:

Non-ASCII character seen before =encoding in '<döt>'. Assuming UTF-8