NAME
DBIO::MySQL::Storage::MariaDB - MariaDB-specific storage for DBIO
VERSION
version 0.900000
SYNOPSIS
package MyApp::Schema;
use base 'DBIO::Schema';
__PACKAGE__->load_components('MySQL::MariaDB');
my $schema = MyApp::Schema->connect($dsn, $user, $pass);
DESCRIPTION
MariaDB-specific storage backend for DBIO. Extends DBIO::MySQL::Storage with adaptations for DBD::MariaDB:
Reads
mariadb_insertidinstead ofmysql_insertidfor last-insert-id retrieval.Disables
mariadb_auto_reconnectby default, consistent with the MySQL storage behavior, to prevent silent transaction loss.Replication status queries use
SHOW REPLICA STATUS(MariaDB 10.5+) with fallback toSHOW SLAVE STATUSfor older servers.
This class is auto-registered for the MariaDB DBI driver and is activated when "connection" in DBIO::MySQL::MariaDB is called.
METHODS
is_replicating
Returns true if the connected MariaDB replica is currently replicating (both IO and SQL threads running). Inherited from DBIO::MySQL::Storage; _replication_status_row is overridden to prefer SHOW REPLICA STATUS.
lag_behind_master
Returns the number of seconds the replica is behind the master. Queries SHOW REPLICA STATUS first, falling back to SHOW SLAVE STATUS for older servers.
DBIO::MySQL::MariaDB - Schema component that activates this storage
DBIO::MySQL::Storage - MySQL parent class
DBIO::MySQL - Main distribution entry point
AUTHOR
DBIO & DBIx::Class Authors
COPYRIGHT AND LICENSE
Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 115:
Unknown directive: =seealso