是否有一个Perl ORM与数据库反向工程?

时间:2022-06-06 10:17:11

I’m looking for a Perl ORM library that has support for reverse engineering of the database schema. All I’ve found so far is http://perlorm.sourceforge.net/ and it appears to have no reverse engineering support.

我正在寻找一个Perl ORM库,它支持数据库模式的逆向工程。到目前为止,我只找到了http://perlorm.sourceforge.net/,它似乎没有反向工程支持。

3 个解决方案

#1


16  

There is a list of recommended ORM modules at the P5P wiki.

在P5P wiki中有一个推荐的ORM模块列表。

Rose::DB::Object and DBIx::Class can generate classes for you from an existing database schema, and can also write them out to a set of Perl module files.

对象和DBIx::Class可以从现有的数据库模式为您生成类,也可以将它们写到一组Perl模块文件中。

#2


5  

DBIx::Class has DBIx::Class::Schema::Loader which generates classes for you from an existing datbase and can also write them out to files. It it limited to loading a single schema though.

类有DBIx::Class::Schema::Loader,它可以从现有的数据库中为您生成类,也可以将类写到文件中。但它仅限于加载单个模式。

#3


4  

There are three commonly used ORMs in Perl, Class:DBI, DBIx::Class and Rose::DB::Object. According to this page at PerlMonks, they can all load the metadata from the database, but it doesn't say how.

在Perl中有三种常用的orm类:DBI、DBIx::Class和Rose::DB::Object。根据PerlMonks的这一页,他们可以从数据库加载元数据,但没有说明如何加载。

#1


16  

There is a list of recommended ORM modules at the P5P wiki.

在P5P wiki中有一个推荐的ORM模块列表。

Rose::DB::Object and DBIx::Class can generate classes for you from an existing database schema, and can also write them out to a set of Perl module files.

对象和DBIx::Class可以从现有的数据库模式为您生成类,也可以将它们写到一组Perl模块文件中。

#2


5  

DBIx::Class has DBIx::Class::Schema::Loader which generates classes for you from an existing datbase and can also write them out to files. It it limited to loading a single schema though.

类有DBIx::Class::Schema::Loader,它可以从现有的数据库中为您生成类,也可以将类写到文件中。但它仅限于加载单个模式。

#3


4  

There are three commonly used ORMs in Perl, Class:DBI, DBIx::Class and Rose::DB::Object. According to this page at PerlMonks, they can all load the metadata from the database, but it doesn't say how.

在Perl中有三种常用的orm类:DBI、DBIx::Class和Rose::DB::Object。根据PerlMonks的这一页,他们可以从数据库加载元数据,但没有说明如何加载。