DBIx-MyParseMySQL的SQL語法解析器
linux下,提供了對(duì)于mysql的sql語法的解析器,示例代碼:
use DBIx::MyParse;
my $parser = DBIx::MyParse->new(
database => 'database',
groups => ['my_cnf_group'],
options => ['--skip-networking'],
datadir => '/tmp'
);
my $query = $parser->parse("SELECT field FROM table");
print $query->getCommand();
評(píng)論
圖片
表情
