You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 like LoadFile.
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.
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.
The text was updated successfully, but these errors were encountered: