I would like to propose additional modules ("add-ons") for ADOdbLite.
The simplest form could be a new, extended class, derived (ist this a right word?..) from the original one.
Eg. I have used my own class with $db->RetAll/GetOne/GetRow methods at the very beginning (thanks for implementig this in the core).
Some useful add-ons:
- debugging support (ADOdb's $db->debug = true).
These debugging capabilities could be enabled by using an extended class, eg. "$db = ADONewDebugConnection('databasetype');"
- DB-based session management
This could be an additiobnal include file with ADOdbLite-compatible DB-based session management. I'm currently using such simple module consisting of less than 50 PHP lines and it seems to work reliable and fast.
I think that is a great idea. :)
I would love to see some other programmers get involved with extending ADOdb Lite. I would like to see as little new code as possible added to the code program and driver. What I would like to see are modules that are only loaded when they are needed. That is the real trick. :)
I have just released a new version that properly impliments the extended class for the ADOConnection. This change should make it easier to add the features you are asking about.
BTW here is a simple but good example how to implement your own session management handler:
I have adopted this script and use it as a short (40 lines) include in my ADOdbLite project. It works very well!
The sources on hudzilla.org aren't copyrighted: "You are granted the right [..] to use the source code presented in your own work, whether commercial or otherwise".
Hmmm.... Looks interesting...
I will look into adding that to a future release. I just have to rewrite it to support the same initialization and functions that the ADOdb session manager uses.
Thanks for posting the link. :)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.