DBIx::C...nStorage(3)
π DBIx::C...nStorage π
okay so bestie, this is a page from the User Contributed Perl Documentation and it's literally all about DBIx::Class::DeploymentHandler::HandlesVersionStorage β the interface for version storage methods. yes the name is a whole mouthful, we don't talk about it π«Ά
β¨ NAME β¨
DBIx::Class::DeploymentHandler::HandlesVersionStorage β it's the interface for version storage methods, periodt.
πΈ DESCRIPTION πΈ
okay so typically, VersionStorages get implemented with a simple DBIx::Class::Result. that's it, that's the vibe. π
if you wanna know what your storage should be doing, go peek at the two existing implementations β they're literally right there as examples of what you might wanna do in your own storage. no cap.
π¦ KNOWN IMPLEMENTATIONS π¦
DBIx::Class::DeploymentHandler::VersionStorage::StandardDBIx::Class::DeploymentHandler::VersionStorage::Deprecated
π METHODS π
π add_database_version
$dh->add_database_version({
version => '1.02',
ddl => $ddl, # can be undef
upgrade_sql => $sql, # can be undef
});
store a brand new version into the version storage. that's the whole job. slay. β¨
note thatddlandupgrade_sqlcan beundef, okay? don't come for me.
π database_version
my $db_version = $version_storage->database_version
returns the most recently installed version in the database. the freshest one. the main character of versions. π
π§ delete_database_version
$dh->delete_database_version({ version => '1.02' })
deletes the given database version from the version storage. bye bestie ππ
π version_storage_is_installed
warn q(I can't version this database!)
unless $dh->version_storage_is_installed
returns true if the version storage is installed. that's it. if it's not installed... well, you saw the warning above. π
π AUTHOR π
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> β icon behavior, honestly. π
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2025 by Arthur Axel "fREW" Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie!! this was perl v5.42.0 on 2026-01-17 for DBIx::C...nStorage(3) β tysm for reading, ily, go install your version storage π«Άβ¨π
π¦ where this page comes from
- fedora 44: perl-DBIx-Class-DeploymentHandler 0.002235-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms