Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for named parameters #49
This is very convenient feature. It's present in
Consider the following query:
updateUploadHistory :: UTCTime -> m () updateUploadHistory curTime = executeNamed_ [sql| INSERT INTO file_upload_history (file_name, uploader_id, timestamp, data_type, remarks) VALUES (:file, :uploader, :time, :type, :remarks) |] [ ":file" := duFileName , ":uploader" := adminId , ":time" := curTime , ":type" := duDataType , ":remarks" := duRemarks ]
It's much more convenient to write with named arguments (as any other query) because we don't need to care about order in which arguments are passed.
It would be really great, if something like this can be supported in