File: mysql.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 (36 lines) | stat: -rw-r--r-- 938 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
=head1 NAME

Tangram::Driver::mysql - Orthogonal Object Persistence in Mysql databases

=head1 SYNOPSIS

   use Tangram;
   use Tangram::Driver::mysql;

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

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

   $storage->disconnect();

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

=head1 DESCRIPTION

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

This backend makes use of Mysql extensions SELECT GET_LOCK, SELECT
RELEASE_LOCK and LAST_INSERT_ID to safely allocate object ids in the
absence of transactions.

The vanilla Relational backend may not be used with Mysql databases in
multiprogramming context.

=head1 METHODS

This backend does not add any methods; for a description of
available methods, see L<Tangram::Relational>.