sqltools-duckdb-driver icon indicating copy to clipboard operation
sqltools-duckdb-driver copied to clipboard

Better Support for Schema / Attached Databases

Open aersam opened this issue 1 year ago • 2 comments
trafficstars

Hi there

expanding a table in the tree on the left which is not in the default schema fails: image

image

Attached databases also seem to suffer from this behavior

Otherwise I really like the extension, it's great to work with it

aersam avatar Jul 17 '24 06:07 aersam

actually i have this exact same issue. it doesn't seem to work when there is multiple schema inside of one db... it seems like something to do with not knowing the fully qualified name of the actual table. otherwise, this is a solid schema.

tyw214 avatar Jul 25 '24 19:07 tyw214

My assumption here is there is an issue with the generated query for non default schemas, and in the case that the table is in a non-default schema the query needs to be prefixed with the schema:

https://github.com/evidence-dev/sqltools-duckdb-driver/blob/master/src/ls/queries.ts

archiewood avatar Sep 09 '24 16:09 archiewood