Tangra...:mysql(3pm)

πŸ“¦
version 2.12 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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