NAME

DBIO::MySQL::MariaDB - MariaDB-specific schema management for DBIO

VERSION

version 0.900004

SYNOPSIS

package MyApp::Schema;
use base 'DBIO::Schema';
__PACKAGE__->load_components('MySQL::MariaDB');

my $schema = MyApp::Schema->connect($dsn, $user, $pass);

DESCRIPTION

Schema component for DBIO that pins the storage class of the DBD::MariaDB driver. It makes no statement about the server: MySQL and MariaDB are told apart from the server itself ("_is_mariadb" in DBIO::MySQL::Storage), whether this component or DBIO::MySQL is loaded.

When connection() is called, the storage class is set to DBIO::MySQL::Storage::MariaDB, the registration target for the MariaDB DBI driver (a dbi:MariaDB: DSN). It overrides no behaviour. The mysql_* or mariadb_* attribute names are chosen per connection by the DBD that owns the handle (see "_dbd_attribute" in DBIO::MySQL::Storage), so this component over a dbi:mysql: DSN keeps using mysql_*.

METHODS

connection

Overrides "connection" in DBIO::Schema to set storage_type to +DBIO::MySQL::Storage::MariaDB before delegating to the parent.

SEE ALSO

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.