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

How to construct raw SQL when it's really necessary? #29

Closed sqd closed 8 years ago

sqd commented 8 years ago

I totally understand why Query is not exposed as a ByteString. But now I want to create databases dynamically, and execute "CREATE DATABASE ?;" would add quotation marks around the databases' names, which is not allowed by MySQL.

sqd commented 8 years ago

BTW, dynamically creating tables is impossible due to the same reason.

sqd commented 8 years ago

OK, so the Query raw constructor is in Database.MySQL.Simple.Types