File: SQLite.pod

package info (click to toggle)
libtangram-perl 2.10-1.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 1,064 kB
  • ctags: 703
  • sloc: perl: 9,665; makefile: 35
file content (42 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

=head1 NAME

Tangram::Driver::SQLite - Orthogonal Object Persistence in SQLite databases

=head1 SYNOPSIS

   use Tangram;
   use Tangram::Driver::SQLite;

   $schema = Tangram::Driver::SQLite->schema( $hashref );

   Tangram::Driver::SQLite->deploy($schema, $dbh);

   $storage = Tangram::Driver::SQLite->connect( $schema,
      $data_source, $username, $password );

   $storage->disconnect();

   Tangram::Driver::SQLite->retreat($schema, $dbh);

=head1 DESCRIPTION

This is the entry point in the SQLite-specific object-relational
persistence backend.

=head1 ERRATA

For reasons similar to the L<Tangram::Driver::Pg> module, this
back-end automatically encodes L<Tangram::Type::Dump::Storable>
objects via L<MIME::Base64> to avoid truncation of values on NUL
bytes.

Also, note that despite what is mentioned on the front page of
L<www.sqlite.org>, SQLite is not actually an ACID database; any writer
to the database has to wait for all other writers to finish before
they can begin their transaction.

So make sure you start and complete your transactions as quickly as
possible with this back-end.

=cut