cockroachdb / cockroach-go

Packages for go clients.
Apache License 2.0
160 stars 70 forks source link

feat: expose testserver BaseDir #127

Closed aeneasr closed 2 years ago

aeneasr commented 2 years ago

This PR adds BaseDir() string which exposes CRDB's root directory which helps us to, for example, load back ups when starting the database.

Please excuse the formatting noise, it is caused by go fmt -w -s .

cockroach-teamcity commented 2 years ago

This change is Reviewable

aeneasr commented 2 years ago

@rafiss anything else needed to get this merge? The change is straight forward and of great help when we need to access the DB file location

rafiss commented 2 years ago

Thanks for your contribution!