Thoughts concerning PDO? #355
Replies: 5 comments 5 replies
-
Hi Travis, what DB do you have in mind? There shouldn't be special MySQLi
queries, but I wouldn't like to guarantee it. I have always wanted to
include postgres in webERP (there is a start that has been made) but just
don't have the time ATM
Thanks
Tim
…On Tue, 11 Feb 2025 at 14:55, TTx5 ***@***.***> wrote:
I went through the SourceForge archives looking for discussions about
moving to PDO and didn't find a lot, but I wanted to see if there were any
strong feelings about it. I know PHP & MySQL have a long history, but since
PDO would open the door to many other Database backends, is there a reason *(beyond
the coding effort)* that it was never adopted in the project?
Is there perhaps some special MySQLi functionality in use, or is it
expected that a lot of the queries were not written in standard SQL?
I'm interested in the project, but I have different preferences on DB, and
I want to understand the past dev choices & future roadmap.
Thanks,
Travis-
—
Reply to this email directly, view it on GitHub
<#355>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6LHWHOZTUDWVTVT5KYD2PIFMVAVCNFSM6AAAAABW5IDGBCVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXHE2DMOJYGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just from my reading experience - PDO seems to be suggested often. I am used to the way webERP is using mysqli. Converting webERP or providing PDO is a nice feature. |
Beta Was this translation helpful? Give feedback.
-
It has been discussed before.
My view (and I know it's not universally popular) has always been that it
goes against one of the fundamental principles of webERP which is to make
the code easily readable to people who wish to use and adapt webERP but do
not come from a background in coding.
This goes right back to when Phil started the project and I am yet to be
convinced that the advantages of adopting PDO are enough to warrant
ditching this principle.
Thanks
Tim
…On Fri, 14 Feb 2025 at 05:17, bcinteractive ***@***.***> wrote:
Just from my reading experience - PDO seems to be suggested often. I am
used to the way webERP is using mysqli. Converting webERP or providing PDO
is a nice feature.
—
Reply to this email directly, view it on GitHub
<#355 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6LAPR73LZOIX5XVEXFL2PV35BAVCNFSM6AAAAABW5IDGBCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMJZGYYDIMI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I believe Travis's enquiry offers valuable insights into current web technology trends. While I agree that we should adhere to the founding principles of webERP and maintain easily understandable code (which is crucial for novices like me), it's also important to stay relevant in the open-source space by providing features that will drive the adoption of webERP. @TTx5 , do you have an estimate of the coding effort required to implement PDO in webERP? @TTx5 , if we reach a consensus to tentatively explore PDO implementation, would you be willing to support its development? Regardless, this should be a post v5.0 initiative. We must stay focused on v5. |
Beta Was this translation helpful? Give feedback.
-
I think that perhaps a way forward would be to take one of the simpler
scripts, so that we can compare what it would like altered for PDO with how
it looks now, so we can compare it for readability.
Tim
…On Fri, 14 Feb 2025 at 23:02, Andrew Couling ***@***.***> wrote:
I believe Travis's enquiry offers valuable insights into current web
technology trends. While I agree that we should adhere to the founding
principles of webERP and maintain easily understandable code (which is
crucial for novices like me), it's also important to stay relevant in the
open-source space by providing features that will drive the adoption of
webERP.
@TTx5 <https://github.com/TTx5> , do you have an estimate of the coding
effort required to implement PDO in webERP?
From my research, it appears that PDO can connect with around 12 different
database types, including those currently supported by webERP. If PDO
requires a single PHP script to connect to databases, similar to
ConnectDB_mysqli.inc, this could reduce the number of scripts and code we
need to maintain. We would, of course, add plenty of comments to the PDO
code to ensure it remains easy to understand.
@TTx5 <https://github.com/TTx5> , if we reach a consensus to tentatively
explore PDO implementation, would you be willing to support its development?
Regardless, this should be a post v5.0 initiative. We must stay focused on
v5.
—
Reply to this email directly, view it on GitHub
<#355 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6LC7FGZ4INWTP4J3SO32PZYZ7AVCNFSM6AAAAABW5IDGBCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRQGYZDOOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I went through the SourceForge archives looking for discussions about moving to PDO and didn't find a lot, but I wanted to see if there were any strong feelings about it. I know PHP & MySQL have a long history, but since PDO would open the door to many other Database backends, is there a reason (beyond the coding effort) that it was never adopted in the project?
Is there perhaps some special MySQLi functionality in use, or is it expected that a lot of the queries were not written in standard SQL?
I'm interested in the project, but I have different preferences on DB, and I want to understand the past dev choices & future roadmap.
Thanks,
Travis-
Beta Was this translation helpful? Give feedback.
All reactions