问题描述
TL; DR:想编写CGI :: CRUD :: Simple(CGI :: CRUD的简约接口模块),但是我想先检查是否忽略了一个已经有的模块。
TL;DR: Want to write CGI::CRUD::Simple (a minimalist interface module for CGI::CRUD), but I want to check first if i overlooked a module that already does that.
我通常使用没有框架的应用程序,这样的应用程序已经到位。然而,前一段时间,我发现自己在一个情况下,我问自己:自我,我有一个DBI数据库句柄和一个CGI查询对象,没有一个模块在某处,可以使用它给我一些CRUD所以我
I usually work with applications that don't have the niceties of having frameworks and such already in place. However, a while ago i found myself in a situation where i was asking myself: "Self, i have a DBI database handle and a CGI query object, isn't there a module somewhere that can use this to give me some CRUD so i can move on and work on other things instead of spending hours writing an interface?"
有关CPAN的快速调查给了我:
CGI :: Crud
Catalyst :: Plugin :: CRUD
Gantry :: Plugins :: CRUD
Jifty :: View :: Declare :: CRUD
CatalystX :: CRUD
Catalyst :: Controller :: CRUD
CatalystX :: CRUD :: REST
Catalyst :: Enzyme
A quick survey on CPAN gave me:
CGI::Crud
Catalyst::Plugin::CRUD
Gantry::Plugins::CRUD
Jifty::View::Declare::CRUD
CatalystX::CRUD
Catalyst::Controller::CRUD
CatalystX::CRUD::REST
Catalyst::Enzyme
现在,我没有特别深入地看这些模块,但是,安全的第一个,他们似乎都需要一些框架的存在。请告诉我如果我错了,我可以把任何这些都插入一个准系统的CGI脚本。
Now, I didn't go particularly in-depth when looking at these modules, but, safe the first one, they all seem to require the presence of some sort of framework. Please tell me if i was wrong and i can just plug any of those into a barebones CGI script.
CGI :: CRUD似乎做了我想要的,坚持通过一个相当古老的C类脚本使用,必须在不同的网站上获得,然后以各种方式和方式来刺激产生有用的东西。我去了,发现它的工作相当整洁,它应该是很容易写一个简单和易于使用的模块,提供了一个非常基本的[dbh,cgi IN] - > [html OUT]接口。
CGI::CRUD seemed to do exactly what i wanted, although it did insist on being used through a rather old and C-like script that must be acquired on a different site and then prodded in various ways and manners to produce something useful. I went with that and found that it works pretty neat and that it should be rather easy to write a simple and easy-to-use module that provides a very basic [dbh, cgi IN]->[html OUT] interface to it.
然而,由于我以前的调查相当短,我可能会仓促地解雇模块或错过了其他人,我发现自己想知道这是否只是工作的重复完成。
However, as my previous survey was rather short and i may have been hasty in dismissing modules or missed others, i find myself wondering whether that would only be duplication of work already done.
因此,我想到了标题中的问题。
As such i ponder the question in the title.
PS:在我的一些解释和太多的假设,其他人思考类似于我的事情,导致留下关键的细节。
PS: I tend to be too short in some of my explanations and make too many assumptions that others think about things similarly as me, resulting in leaving out critical details. If you find yourself wondering just what exactly I am thinking about when i say CRUD, please poke me in comments and I'll amend the question.
推荐答案
也许符合您的口味。
这篇关于在Perl的数据库句柄上,通过CGI获取CRUD的最快方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!