DB Ix Schema Annotate只读发布历史
DBIx::Schema::Annotate是一个为ORM文件添加表模式注释的模块,灵感来源于annotate_models。使用该模块,可以通过数据库连接将模式信息写入文件,方便开发者在ORM文件中查看数据库结构。
基本用法示例如下:
use DBIx::Schema::Annotate;
my$dbh=DBI->connect('....')or die$DBI::errstr;
my$annotate=DBIx::Schema::Annotate->new(dbh=>$dbh);
$annotate->write_files(dir=>'...',exception_rule=>{#todo});
对于Amon2和Teng框架,可以使用以下命令来执行:
carton exec--perl-Ilib-MMyApp-MDBIx::Schema::Annotate-e'my$c=MyApp->bootstrap'
下载地址
用户评论