usql icon indicating copy to clipboard operation
usql copied to clipboard

Dashes in connections names in config.yaml cause warnings/errors

Open mapperr opened this issue 1 year ago • 0 comments

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?

mapperr avatar Jun 13 '24 11:06 mapperr