-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relax the requirement for SQL to be a string #2969
Comments
Could you provide an example of what you're talking about it? |
It goes like this: It's lot of converting back and forth that could be skipped if methods like simpleQuery(), execute() and so would allow for arrays to passed in. |
Unfortunately I don't think we can do that unless it is in the next major release. All of the current drivers have type-hinting of |
Stringables are accepted for string typehints, so you can accomplish this by passing a class with |
Hi!
I'm building a Database driver. The difficulty is that the database engine is queried using an API, not SQL. As a consequence the table (FROM clause) is a part of the API URL, not the query itself. I would find it helpful if the DB methods that work with the $sql parameter could be relaxed not to require strictly the string data type and allow an array as well.
Thanks for considering
CodeIgniter 4 version
4.0.3
Affected module(s)
Database
The text was updated successfully, but these errors were encountered: