You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the insert signature contains a $format parameter. I'm inclined to just drop that and infer from the value type what it should be: strings should be strings, numbers should be numbers, and so forth. Crazy stuff! Dropping the last parameter shouldn't break anything since passing additional parameters in PHP doesn't throw an error.
The text was updated successfully, but these errors were encountered:
borkweb
changed the title
Feature: Switch Query Builder update method to use raw SQL and support multi-row inserts
Feature: Switch Query Builder insert method to use raw SQL and support multi-row inserts
Sep 29, 2022
Currently the Query Builder user wpdb::insert() under the hood to run the insert. This is lame for a couple reasons:
Let's just ditch wpdb and build the SQL ourselves. We don't need them! I think as a good first step the following should be possible:
Currently the insert signature contains a
$format
parameter. I'm inclined to just drop that and infer from the value type what it should be: strings should be strings, numbers should be numbers, and so forth. Crazy stuff! Dropping the last parameter shouldn't break anything since passing additional parameters in PHP doesn't throw an error.The text was updated successfully, but these errors were encountered: