i正在测试将我的示例SQLITE数据库的DBIx::Class
转载到Windows 7机器上。我已经安装了DBIx::Class::Schema::Loader
,以及DBI
和DBD::SQLite
模块,但是当我使用脚本dbicdump
时,它给出了以下错误
C:UsersFooDocumentsdbDump>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
。
我怀疑这是因为您错过了-o
选项之前应该使用的CC_9。