| 1 | package DBIO::MySQL::MariaDB; | ||
| 2 | # ABSTRACT: MariaDB-specific schema management for DBIO | ||
| 3 | |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use base 'DBIO::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | |||
| 10 | 0 | ▶ | sub connection { |
|
Subroutine
connection: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 11 | 0 | my ($self, @info) = @_; | |
| 12 | 0 | $self->storage_type('+DBIO::MySQL::Storage::MariaDB'); | |
| 13 | 0 | return $self->next::method(@info); | |
| 14 | } | ||
| 15 | |||
| 16 | |||
| 17 | 1 | 1; | |
| 18 | |||
| 19 | __END__ | ||
| 20 | |||
| 21 | =pod | ||
| 22 | |||
| 23 | =encoding UTF-8 | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | DBIO::MySQL::MariaDB - MariaDB-specific schema management for DBIO | ||
| 28 | |||
| 29 | =head1 VERSION | ||
| 30 | |||
| 31 | version 0.900001 | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | package MyApp::Schema; | ||
| 36 | use base 'DBIO::Schema'; | ||
| 37 | __PACKAGE__->load_components('MySQL::MariaDB'); | ||
| 38 | |||
| 39 | my $schema = MyApp::Schema->connect($dsn, $user, $pass); | ||
| 40 | |||
| 41 | =head1 DESCRIPTION | ||
| 42 | |||
| 43 | MariaDB-specific schema component for L<DBIO>. Load this component instead | ||
| 44 | of L<DBIO::MySQL> when connecting to a MariaDB server. | ||
| 45 | |||
| 46 | When C<connection()> is called, the storage class is set to | ||
| 47 | L<DBIO::MySQL::Storage::MariaDB>, which uses the C<mariadb_*> DBD attributes | ||
| 48 | provided by L<DBD::MariaDB> rather than the C<mysql_*> attributes used by | ||
| 49 | L<DBD::mysql>. | ||
| 50 | |||
| 51 | =head1 METHODS | ||
| 52 | |||
| 53 | =head2 connection | ||
| 54 | |||
| 55 | Overrides L<DBIO/connection> to set C<storage_type> to | ||
| 56 | C<+DBIO::MySQL::Storage::MariaDB> before delegating to the parent. | ||
| 57 | |||
| 58 | =seealso | ||
| 59 | |||
| 60 | =over 4 | ||
| 61 | |||
| 62 | =item * L<DBIO::MySQL> - MySQL equivalent of this component | ||
| 63 | |||
| 64 | =item * L<DBIO::MySQL::Storage::MariaDB> - Storage backend activated by this component | ||
| 65 | |||
| 66 | =back | ||
| 67 | |||
| 68 | =head1 AUTHOR | ||
| 69 | |||
| 70 | DBIO & DBIx::Class Authors | ||
| 71 | |||
| 72 | =head1 COPYRIGHT AND LICENSE | ||
| 73 | |||
| 74 | Copyright (C) 2026 DBIO Authors | ||
| 75 | Portions Copyright (C) 2005-2025 DBIx::Class Authors | ||
| 76 | Based on DBIx::Class, heavily modified. | ||
| 77 | |||
| 78 | This is free software; you can redistribute it and/or modify it under | ||
| 79 | the same terms as the Perl 5 programming language system itself. | ||
| 80 | |||
| 81 | =cut | ||