DiaColloDB::Upgrade::v0_10_x2t - DiaColloDB utilities: auto-magic upgrade: v0.10.x: x-tuples (+date) to t-tuples (-date)
##======================================================================== ## PRELIMINARIES use DiaColloDB::Upgrade::v0_10_x2t; ##======================================================================== ## API $version = $CLASS_OR_OBJECT->toversion(); $bool = $up->upgrade(); ##======================================================================== ## Backup & Revert $bool = $up->backup(); @files = $up->revert_created(); @files = $up->revert_updated();
DiaColloDB::Upgrade::v0_10_x2t provides a DiaColloDB::Upgrade-compliant package for upgrading a DiaColloDB database directory in-place.
Upgrade actions performed:
converts date-inclusive "x-tuple" enum xenum to date-free attributes-only term-tuple ("t-tuple") enum tenum.
xenum
tenum
maps attribute multimap target IDs from "x-tuples" to "t-tuples".
updates db header pack-template keys ("pack_x*" -> "pack_t*")
updates native relation DBs xf, cof.
xf
cof
$version = $CLASS_OR_OBJECT->toversion();
Returns default target version; here "0.10.000".
"0.10.000"
$bool = $up->upgrade();
Performs upgrade in-place on the local DiaColloDB index in $up->{dbdir}, returns true on success.
$up->{dbdir}
$bool = $up->backup();
Backup any files we expect to change during upgrade() to $up->backupdir().
$up->backupdir()
@files = $up->revert_created();
Returns list of files created by this upgrade, for use with default DiaColloDB::Upgrade::Base::revert().
@files = $up->revert_updated();
Returns list of files updated by this upgrade, for use with default DiaColloDB::Upgrade::Base::revert().
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2016 by Bryan Jurish
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.
dcdb-upgrade.perl(1), DiaColloDB::Upgrade::Base(3pm), DiaColloDB::Upgrade(3pm), DiaColloDB(3pm), perl(1), ...
To install DiaColloDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DiaColloDB
CPAN shell
perl -MCPAN -e shell install DiaColloDB
For more information on module installation, please visit the detailed CPAN module installation guide.