-
Notifications
You must be signed in to change notification settings - Fork 66
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
bindParamsFromArray to also accept associative arguments #41
Comments
Yes, please! Would love to see this feature in here. I see there's already some pseudo code in place here: https://github.com/friends-of-reactphp/mysql/blob/master/src/Query.php#L124 Now that the test suite has seen some significant improvements with #39, I suppose this would not be too much work to implement this here. I'm not working on this myself at the moment, but I suppose PRs would be very much appreciated! |
Hi, I've created a decorator for the binding of associative parameters, check it out if you are interested: |
Cool, could you add it to: https://github.com/reactphp/react/wiki/Users |
OK! I've added it in the Databases section. |
In PDO it's common to also provide an associative array of variables in the form of ":name", as well as question mark placeholders. (http://php.net/manual/en/pdostatement.bindparam.php)
So it would be awesome if $query->bindParamsFromArray($args); also supported this.
The text was updated successfully, but these errors were encountered: