在 运行 dbicdump 时出现错误 DBI_DRIVER env var not set

getting error DBI_DRIVER env var not set while running dbicdump

我正在测试将我的示例 sqlite 数据库的 DBIx::Class 转储到 windows 7 机器上。 我已经安装了 DBIx::Class::Schema::Loader 以及 DBIDBD::SQLite 模块,但是当我使用脚本 dbicdump 时出现以下错误

C:\Users\Foo\Documents\dbDump>perl dbicdump.pl dump_directory=.\lib ^
More?     -o components="[q{InflateColumn::DateTime}]" ^
More?     -o preserve_case=1 ^
More?     MyApp::Schema DBI::SQLite:./sqlite.db

DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: Can't   connect
to data source 'MyApp::Schema' because I can't work out what driver to use (it 
doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not
set) at C:/Perl64/site/lib/DBIx/Class/Storage/DBI.pm line 1517. at dbicdump.pl 
line 178

我尝试用谷歌搜索,但找不到任何适合解决问题的方法。

看起来 dbicdump 在解析您的命令行选项时有点困惑。它认为 MyApp::Schema 是连接信息,而不是 DBI::SQLite:./sqlite.db.

我怀疑那是因为您错过了应该放在 dump_directory=.\lib 选项之前的 -o