Reply::Plugin::ORM - Reply + O/R Mapper
; .replyrc ... [ORM] config = ~/.reply-plugin-orm otogiri_plugins = DeleteCascade ; You can use O/R Mapper plugin (in this case, 'Otogiri::Plugin::DeleteCascade'). teng_plugins = Count,SearchJoined ; You can use multiple plugins, like this. ; .reply-plugin-orm +{ sandbox => { orm => 'Otogiri', # or 'Teng' connect_info => ["dbi:SQLite:dbname=...", '', '', { ... }], } } $ PERL_REPLY_PLUGIN_ORM=sandbox reply
Reply::Plugin::ORM is Reply's plugin for operation of database using O/R Mapper. In this version, we have support for Otogiri and Teng.
Using this module, you can use O/R Mapper's method at Reply shell. If you set loading of O/R Mapper's plugin in config file, you can use method that provided by plugin on shell.
In order to prevent the redefined of function, these method's initials are upper case. You can call Teng's single method, like this:
single
1> Single 'table_name';
In addition, this module provides two additional methods.
Show_methods
This method outputs a list of methods provided by this module.
Show_dbname
This method outputs the name of database which you are connecting.
Copyright (C) papix.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
papix <mail@papix.net>
Reply
Otogiri
Teng
To install Reply::Plugin::ORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reply::Plugin::ORM
CPAN shell
perl -MCPAN -e shell install Reply::Plugin::ORM
For more information on module installation, please visit the detailed CPAN module installation guide.