Tangra...:mysql(3pm)
β¨ NAME β¨
Tangram::Driver::mysql β Orthogonal Object Persistence in Mysql databases π
okay bestie, this is the mysql driver page from the Tangra... docs (it's Perl's User Contributed Perl Documentation, iconic behavior honestly), and it's short, sweet, and kinda powerful. let's get into it πΈ
π 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);
like, that's the whole vibe right there β schema it, deploy it, connect to it, disconnect, retreat. the full life cycle, periodt π
π¦ DESCRIPTION π¦
This is the entry point into the mysql-specific object-relational persistence backend. so if you're doing object-relational persistence and your database is Mysql, this is where you knock π«Ά
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. no transactions? no problem, bestie, Mysql's got these little helpers and this driver knows how to use them π
β οΈ real talk though, no cap: the vanilla Relational backend may not be used with Mysql databases in multiprogramming context. like don't even try it, that's not the move π
π METHODS π
This backend does not add any methods β zero, none, nada, it's giving "I'm just a driver, I'm not doing extra credit" π
For a description of available methods, go see Tangram::Relational. that's the main character of the method lore, this page is just the mysql-flavored doorway β¨
okay that's literally the whole page, you ate that reading it π stay slay, keep your object ids safe, and remember: Tokens of gratitude forever, ngl β¨π
Tangra...:mysql(3pm) β Perl v5.36.0, dated 2022-10-16. mwah π«Άπ
π¦ where this page comes from
- ubuntu noble: libtangram-perl 2.12-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtangram-perl 2.12-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtangram-perl 2.12-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms