paul-rouse / mysql-simple

A mid-level client library for the MySQL database, intended to be fast and easy to use.
Other
91 stars 35 forks source link

feature request: table and field name substitution #20

Open ryantm opened 8 years ago

ryantm commented 8 years ago

Currently, mysql-simple only supports query substitution on values, but it would be nice to support table names and field names as well.

pavonia commented 8 years ago

I second having this feature in the package. If I understand correctly, it could be easily implemented by adding two newtype wrappers for table and field names, respectively, and define an instance of Param for each, which would just add the backticks around the wrapped table or field name.