Catmandu::Plugin::Readonly - Make stores or bags read-only
$ cat catmandu.yml --- store: test: package: File::Simple options: default_plugins: [ 'Readonly'] root: t/data # This will fail, no files can be added to the 'test' store $ catmandu stream myfile.txt to test --bag 1 -id myfile.txt # This command will succeed only if the 'test' database contains # the 'sample.txt' file # catmandu stream test --bag 3 --id sample.txt
The Catmandu::Plugin::Readonly will transform a Catmandu::Store or a Catmandu::Bag in read-only mode: all writes, deletes and drops will be ignored.
This command will work on Catmandu::Store and Catmandu::FileStore implementations.
Catmandu::Store, Catmandu::Bag
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.