logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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.

Methods

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

perl v5.36.0                                       2022-10-16                        Tangram::Driver::mysql(3pm)

Name

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

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);

See Also