K
K
Karl Meinhoff2016-08-26 12:27:32
PHP
Karl Meinhoff, 2016-08-26 12:27:32

What is the best way to style Query Builder?

I am writing my bicycle framework. It is necessary to make a universal class of queries to the database, or rather to a table in the database. That is one class - one table. Preferably this should be able to send MySQL, PostgreSQL, MSSQL and SQLite queries. Well, the implementation is based on PDO, one problem is Query Builder. How best to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Esin, 2016-08-26
@KarleKremen

I don’t know about you, but here, starting from the university, they said: before you rush to realize your own, you must first study what is already there. At least that's how you get smart ideas.
Look at the existing implementations of the query builder --- there will be ideas on how to implement your bike.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question