usql
usql copied to clipboard
Dashes in connections names in config.yaml cause warnings/errors
Hi,
I defined a connection like this in my config.yaml:
connections:
my-db: 'mysql://mydatabase.example.com:3306/myvay'
and I noted, in general, that using a connection name with dashes in config.yaml cause an warning like:
warning: named connection "my-db" was not defined: invalid identifier
and if I try to connect to that with \c my-db I get:
error: invalid database scheme
If I rename my-db to my_db all works as expected.
Should we add this info to the README (I wasnt able to find any hint) or it is a bug?