barklan / inline_sql_syntax

Highlight and lint inline SQL strings.
https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax
MIT License
58 stars 25 forks source link

MySQL dbDriver: is it possible to automatically select a database in settings.json? #101

Open martinfr87 opened 2 years ago

martinfr87 commented 2 years ago

With the MySQL driver, one must explicitly specify the database name in queries, eg.

SELECT name FROM mydatabase.customer

where 'mydatabase' is the name of the database. This is really annoying - would it be possible to have the extension automatically use a specified database? So that it would just be sufficient to type

SELECT name FROM customer

Thanks.