Dancer2::Plugin::Database missing?
Hi, In Dancer2::Cookbook I read that there is a module Dancer2::Plugin::Database which can be used to access a database. I clicked on that link but I've seen that there is not such a module. Is there a better way of accessing a database directly than by using this module? (without using an ORM) --Octavian
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 https://metacpan.org/module/Dancer::Plugin::Database Cheers, Carlos <gnusosa> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQGwBAEBAgAGBQJRPsmbAAoJEKFFUq2hAPGnIkMMnjnZQ2CvxjtM1+Y2cbITtnKT VVZM10WBlLVRoOgrcjQMD3q7ApQdUJNakYkq/4o9zKve3W8KQ7Xt3rAXYOOUvQUI 07sH4AyQTeuUeafeVFnsdmlgjSGL2NGVDMhLRozNkMvVdAc+JDY/RHFARXlgvcOf QOHU0d2ZoDTNEF0NMdZxQHdzqLXH4uHkfUEFZKSuq6xhvu4S/ISJ7XI4gey9ajR9 3ZRPmpgjP8uG2ieL5sLYXEImpI6GNAxdnX/oPib55fjz4BtU8aQn860FgxWldcXq 1th/lwr7QMxQFzpRwvO6uJH1NHkLtRTC655M/Yp+WcOiryxpLDD9q73f6qpASEEm 0VFbzS2gnAmb6KyCIYKfAzMd6fnPUUmVsktbQbPIqAvmpginVXjgtcCqRmBOgQp3 LSPunJJqTRxGQbQDhGKmzTQtcfe9SnHBLLG50GjTyRgLiMtHPwzetfsOeRyBdBNC eDDDCEKvDCClbeSmSILF+Fx8ForEs2K5xXshdhNl9xPjxiQ2VVOhBDAJjdEXXcdB Zc3G =firz -----END PGP SIGNATURE----- On Tue, Mar 12, 2013 at 08:13:30AM +0200, Octavian Rasnita wrote:
Hi,
In Dancer2::Cookbook I read that there is a module Dancer2::Plugin::Database which can be used to access a database. I clicked on that link but I've seen that there is not such a module.
Is there a better way of accessing a database directly than by using this module? (without using an ORM)
--Octavian
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry about the last mail, I misread, you're talking about Dancer2 I haven't use Dancer2::Plugin::Database, but I would recommend, https://metacpan.org/module/Dancer2::Plugin::DBIC Hope it works for you. Cheers, Carlos <gnusosa> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQGwBAEBAgAGBQJRPstDAAoJEKFFUq2hAPGnSaUMoOSkvWqo7JR2RXRgQJjLT9tx qsen8RVn+74SfvAKDyI+pB78/HzkNTq/XPrIL0ui5kUVzYqHVlnHAF/uA2i0ys+q 9/qH8+EJuCAKkw54S5n3eitrZpnUmo/u6V8P2DsNPHQ1JGczLldU12dmttOpdPFp Y6yJKHl/0vHlfxId2QOeMKpy8KRcc0Dp5nLfJpUtYHWGAURog1v0w3S2x8/faJop 71zyNnL8b8Li6V7FLy7g5fPN86TrPOMspvzcH4I4oXA62aLcHt+onm7Yxt8WOzmS KZ0Er4gEZTwf/QBpdDA2Ig0BTqWCGanhNq+FxIbvyFMHCbossD7PQv8/91H9u+kf 3ckuAmTshx4C0AruEQCrfyy6+SZYH1LlAKwg4AvIT5ZmjnR2I05NHs7Lkh7IEvXB bOxip/zWHkICgj+70lHNaufqhpkViOYy73LMJGvy2JmT/lBySWIeWup3kw2YS0NL PF6WEsZgonTqOw8Aqnxtr9/4K9KgHsM90ed6ePIZbAZLLO1HSLhV9E3sgcrtBM0Q UjMp =kX3b -----END PGP SIGNATURE----- On Tue, Mar 12, 2013 at 08:13:30AM +0200, Octavian Rasnita wrote:
Hi,
In Dancer2::Cookbook I read that there is a module Dancer2::Plugin::Database which can be used to access a database. I clicked on that link but I've seen that there is not such a module.
Is there a better way of accessing a database directly than by using this module? (without using an ORM)
--Octavian
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
On 03/12/2013 06:29 AM, Carlos Ivan Sosa wrote:
Sorry about the last mail, I misread, you're talking about Dancer2
I haven't use Dancer2::Plugin::Database, but I would recommend, https://metacpan.org/module/Dancer2::Plugin::DBIC
Apparently you also missed the bit when Octavian wrote "without using an ORM" :-) Dave... -- Dave Cross :: dave@dave.org.uk http://dave.org.uk/ @davorg
From: "Dave Cross" <dave@dave.org.uk>
On 03/12/2013 06:29 AM, Carlos Ivan Sosa wrote:
Sorry about the last mail, I misread, you're talking about Dancer2
I haven't use Dancer2::Plugin::Database, but I would recommend, https://metacpan.org/module/Dancer2::Plugin::DBIC
Apparently you also missed the bit when Octavian wrote "without using an ORM" :-)
Dave...
Yep :-) Anyway, I was confused that such an important module is not available even though there are links to it and it is also one of the recommended plugins for Dancer2. But actually I hope that Dancer2::Plugin::Adapter works, because I need to use a standalone module with the Dancer appso the Database plugin is not absolutely necessary for the moment. Octavian
On Tue, 12 Mar 2013 11:14:38 +0200 "Octavian Rasnita" <orasnita@gmail.com> wrote:
Anyway, I was confused that such an important module is not available even though there are links to it and it is also one of the recommended plugins for Dancer2.
Yeah, I just haven't had sufficient time to deal with it yet; I will soon. If it's linked to from docs, that's almost certainly a case of the docs from Dancer1 being imported and s/Dancer/Dancer2/ throughout. Rest assured it will be available as soon as I have a moment to make it so. -- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github
On Tue, Mar 12, 2013 at 08:13:30AM +0200, Octavian Rasnita wrote:
In Dancer2::Cookbook I read that there is a module Dancer2::Plugin::Database which can be used to access a database. I clicked on that link but I've seen that there is not such a module.
At this stage, many modules still need to be ported to the Dancer2 package.
Is there a better way of accessing a database directly than by using this module? (without using an ORM)
For the moment, I'd suggest that you'd be fine using DBI directly, until Dancer2::Plugin::Database comes out. As I understand it, bigpresh is currently tied up with other things, but ports of a number of plugins that he maintains will be coming soon. If you're willing to put in the legwork, the source for D:P:Database is readily available (https://github.com/bigpresh/Dancer-Plugin-Database) -- a port into the Dancer2 package shouldn't be too painful. HTH, Jashank -- Jashank Jeremy PGP: 0x25A5C309
participants (5)
-
Carlos Ivan Sosa -
Dave Cross -
David Precious -
Jashank Jeremy -
Octavian Rasnita