Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by
For the purpose of integrating this project with my existing logging and debugging tools, I want to use my own method for connecting to the DB and executing queries.

I was able to accomplish this simply by editing "qa_db_single_select" (in /qa-include/qa-db.php), but of course accumulating such edits makes it hard to upgrade to the next version of Q2A when it becomes available.

Is there a recommended way to go about this?

1 Answer

+1 vote

The innermost database querying function is actually qa_db_query_raw(...) - all queries go through that. So that's the one to modify. I'm afraid there's no plugin style mechanism for this, but it shouldn't be too hard to apply your modifications to future versions, since it's a single function with one parameter.

Thanks -- that's helpful.