https://github.com/siemplexus/dbix-class-storage-dbi-mariadb
Storage::DBI class implementing MariaDB specifics
https://github.com/siemplexus/dbix-class-storage-dbi-mariadb
dbix-class mariadb perl
Last synced: 4 months ago
JSON representation
Storage::DBI class implementing MariaDB specifics
- Host: GitHub
- URL: https://github.com/siemplexus/dbix-class-storage-dbi-mariadb
- Owner: Siemplexus
- License: other
- Created: 2023-07-12T02:35:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T11:41:22.000Z (over 1 year ago)
- Last Synced: 2025-01-29T12:31:22.838Z (over 1 year ago)
- Topics: dbix-class, mariadb, perl
- Language: Perl
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# DBIx::Class::Storage::DBI::MariaDB
Storage::DBI class implementing MariaDB specifics
## Description
This module adds support for MariaDB in the DBIx::Class ORM. It supports
exactly the same parameters as the [DBIx::Class::Storage::DBI::mysql](https://metacpan.org/pod/DBIx::Class::Storage::DBI::mysql)
module, so check that for further documentation.
## Installation
```
$ cpanm DBIx::Class::Storage::DBI::MariaDB
```
## Usage
Similar to other storage modules that are builtin to DBIx::Class, all you need
to do is ensure `DBIx::Class::Storage::DBI::MariaDB` is loaded and specify
MariaDB in the DSN. For example:
```perl
package MyApp::Schema;
use base 'DBIx::Class::Schema';
# register classes
# ...
# load mariadb storage
__PACKAGE__->ensure_class_loaded('DBIx::Class::Storage::DBI::MariaDB');
package MyApp;
use MyApp::Schema;
my $dsn = "dbi:MariaDB:database=mydb";
my $user = "noone";
my $pass = "topsecret";
my $schema = MyApp::Schema->connect($dsn, $user, $pass);
```
## Copyright and License
Copyright (C) 2023 Siemplexus
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.