Closed
Description
Currently, using sqlx with pq you are able to exec the contents of a SQL file http://godoc.org/github.com/jmoiron/sqlx#LoadFile
This would be a great feature for this driver.
Currently, using sqlx with pq you are able to exec the contents of a SQL file http://godoc.org/github.com/jmoiron/sqlx#LoadFile
This would be a great feature for this driver.
Activity
arnehormann commentedon Mar 24, 2015
@labkode we don't support it because Go's
database/sql
package does not support paging over multiple results and issuing multiple queries leads to multiple results.We don't want to introduce anything unsupported by
database/sql/driver
to keep our driver lean, so we don't support multiple results either. So we don't support multiple queries. That's why we don't support something likeLoadFile
.Sometimes this is frustrating, but we won't have a weird api if this is supported by
database/sql
in the future.See the discussion in #66 - this is a duplicate.
julienschmidt commentedon Jun 3, 2015
#339 is what you are looking for 😉