You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Arturo 'Buanzo' Busleiman <bu...@buanzo.com.ar> on 2009/03/06 15:16:32 UTC

one SELECT query only?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi guys,

Any source code file you could recommend to see how a simple select query can be performed from
within a module using apr_dbd would be much appreciated. I couldn't find a good example.

My module only need one query from time to time, so I don't need no persistant dbd pools, nothing
fancy... just... one query :) Any pointers or should I just -lsqlite3 ? :)

- --
Arturo "Buanzo" Busleiman / Arturo Busleiman @ 4:900/107
Independent Linux and Security Consultant - SANS - OISSG - OWASP
http://www.buanzo.com.ar/pro/eng.html
Mailing List Archives at http://archiver.mailfighter.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkmxMEAACgkQAlpOsGhXcE3sKQCffyDf0CMMOK+egnVSASaJ4X2O
V9YAnRH3Veh7//YyT7L0rGcMXKXc4xvu
=ZIuu
-----END PGP SIGNATURE-----

Re: one SELECT query only?

Posted by Arturo 'Buanzo' Busleiman <bu...@buanzo.com.ar>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Jérôme Renard wrote:
> Hope that helps.

Indeed it does. Very concise and clear code, Jérôme. Merci.

- --
Arturo "Buanzo" Busleiman / Arturo Busleiman @ 4:900/107
Independent Linux and Security Consultant - SANS - OISSG - OWASP
http://www.buanzo.com.ar/pro/eng.html
Mailing List Archives at http://archiver.mailfighter.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkmxNEIACgkQAlpOsGhXcE2TRQCdFZvzaZjMIZbX3fb+lJABZmqv
HKsAniNzu0DTwUZPKLFy3Lefh+HLfmNH
=70yq
-----END PGP SIGNATURE-----

Re: one SELECT query only?

Posted by Jérôme Renard <jr...@ez.no>.
Hi Arturo,

Arturo 'Buanzo' Busleiman a écrit :
[...]
> Any source code file you could recommend to see how a simple select query can be performed from
> within a module using apr_dbd would be much appreciated. I couldn't find a good example.

In case it helps :

- http://svn.projects.ez.no/mod_ezclustered_image/mod_ezclustered_image.c
- http://svn.projects.ez.no/mod_ezclustered_image/INSTALL

You might find the "Configuring the module" section useful, in the INSTALL file.

Hope that helps.

Best Regards.

-- 
Jérôme :)