perl有数据库的实现吗

Is there any implementation of database by perl

有没有perl模块实现数据库功能,好用。我不需要用于连接某些数据库产品的模块。我需要用 perl 编写简单的数据库。

谢谢。

我建议使用 DBD::SQLite。这是一个独立的数据库管理系统,不依赖于外部二进制文件(与大多数其他 DBI 驱动程序不同)。它有很好的选项,例如创建内存数据库。

SQLite 是一个开源 RDBMS,它实现了 SQL ANSI 标准的一个重要子集。

DBD::SQLite是一个合法的DBI驱动程序,所以它符合伟大DBI module的API,这是事实上的数据库Perl标准接口。

来自文档:

DBD::SQLite is a Perl DBI driver for SQLite, that includes the entire thing in the distribution. So in order to get a fast transaction capable RDBMS working for your perl project you simply have to install this module, and nothing else.

如果没有SQL和关系你也能活下去,试试DBM::Deep。最简单的是,我肯定不会在生产环境中使用它,但它非常适合快速制作原型。

DESCRIPTION

A unique flat-file database module, written in pure perl. True multi-level hash/array support (unlike MLDBM, which is faked), hybrid OO / tie() interface, cross-platform FTPable files, ACID transactions, and is quite fast. Can handle millions of keys and unlimited levels without significant slow-down. Written from the ground-up in pure perl -- this is NOT a wrapper around a C-based DBM. Out-of-the-box compatibility with Unix, Mac OS X and Windows.