dolthub / driver

Golang database/sql driver for Dolt
Apache License 2.0
22 stars 5 forks source link

Allow setting the CLIENT_FOUND_ROWS capability #21

Closed arvidfm closed 3 months ago

arvidfm commented 4 months ago

Currently there doesn't seem to be any way to set the CLIENT_FOUND_ROWS capability when using the dolt driver. The MySQL driver for Go provides the clientFoundRows option which a Dolt server will respect, but if you want to avoid spinning up an entire server it seems that you're out of luck if you require this capability to be set. Perhaps simply adding it as another DSN parameter like the MySQL driver could be a good way to expose the option.