ecohealthalliance / doltr

A client for dolt databases
https://ecohealthalliance.github.io/doltr
GNU Affero General Public License v3.0
17 stars 2 forks source link

Refactor dolt_use() to enable 'HEAD' and 'HEAD~2' style commit hash aliases #56

Open n8layman opened 2 years ago

n8layman commented 2 years ago

This can be done using a query such as:

'select dolt_checkout("main", "HEAD")'

instead of what we currently use:

'use `dbName/hash`'
noamross commented 2 years ago

Should we change the name of the function? USE isn't that intuitive and not really paralleled in the CLI API.