semsol / arc2

ARC RDF Classes for PHP
Other
332 stars 89 forks source link

Replace mysqli_ with PDO #76

Closed d3f3kt closed 6 years ago

d3f3kt commented 8 years ago

I'm currently working on a project which requires arc2 to store resources. This project is not intended to limit itself to mysql. For example the test environment runs completely with sqlite in-memory database.

The solution for this problem is to replace the mysqli implementation with PDO. I'm willing to write a patch for this issue, just want to ask if you have any concernes.

@semsol @k00ni

bnowack commented 8 years ago

Somebody should replace the whole library with something more up-to-date ;-)

Re PDO: I think I've used a couple of MySQL-specific features (possibly for locking), which might be tricky to replace in non-MySQL environments. Otherwise, a PDO-based approach would of course be great! The data access code is very spaghetti-ish, though...

k00ni commented 7 years ago

The solution for this problem is to replace the mysqli implementation with PDO. I'm willing to write a patch for this issue, just want to ask if you have any concernes.

@d3f3kt: Did you finished the patch or are you still willing to write it?

k00ni commented 6 years ago

Closed in favour of #109