我有一个perl代码,我们正在读取.txt文件,但现在我们想要从H2DB数据库中读取数据。我试图寻找,似乎没有可用的模块。你们中的一些人可以帮忙吗?
答案 0 :(得分:1)
H2支持Postgresql网络协议,因此您可以尝试这样做 使用postgres的驱动程序
以下是您可以使用的模块:
use DBI;
$dbh = DBI->connect("dbi:Pg:dbname=$dbname", "", "");
# for some advanced uses you may need PostgreSQL type values:
use DBD::Pg qw(:pg_types);
# See the DBI module documentation for full details