nyaruka / gocommon

Common utility library for the TextIt platform.
Other
7 stars 11 forks source link

BulkQuery should support more complex `VALUES` clauses #59

Open rowanseymour opened 2 years ago

rowanseymour commented 2 years ago

dbutil.BulkQuery currently only works when statement includes the exact text VALUES( but sometimes depending on formatting style it might be preferable to write it VALUES (.

Would be useful if it allowed casts as well, e.g. VALUES (:id::int) so that the column is created with type int and you don't have to use ::int elsewhere in the query.