dolthub / dolthub/dolt

Support query string syntax to set branch in DSN

Open
#5,911 0 comments 0 reactions 0 assignees View on GitHub
enhancement sql server
Dominant language
Go
Stars
24.4k
Forks
873
Avg merge
1d 5h
Merged PRs (30d)
108

Description

Some connectors support the `db/branch` syntax in a DSN to choose an initial branch head, but some do not. Notably the golang mysql driver doesn't:

https://github.com/go-sql-driver/mysql/blob/master/dsn.go#L307

We should support `branch=foo` in the query string of the DSN as an alternative.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.