1. 首页
  2. 考试认证
  3. 其它
  4. DB Ix Schema Annotate只读发布历史

DB Ix Schema Annotate只读发布历史

上传者: 2024-12-29 05:38:27上传 ZIP文件 17.3KB 热度 8次

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'
下载地址
用户评论