Cannot select a schema (database) if not informed at connection time #508
-
Hello! I am rynig Harlequin as a one step beyon mycli and mypsql enhanced clients... And it looks quite good. HOWEVER... I work with several databases, each with several schemas. I set up a connection using the host, port user etc., but NO "database", as I use three schemas for a single project (which consists on three separated but intertwined apps). So, I can see the schemas, which it's great. But, when I try to dosomething like SELECT * FROM config WHERE updated_at > CURRENT_DATE - 7 DAY Y get this:
I tried to ENTER, CTRL+ENTER, SHIFT*ENTER, ALT+ENTER and many other keybindings... None allows me to "select active schema", which forces me to prepend the schema to the table name... like Also, if at least hitting CTR+ENTER / CLICK on the table name would copy the schema, at least it would be easier... But still I'll have to edit any query I paste to the editor. Any chance to get a new functionality to "Change active Schema" (and show it in different color, or in the editor's legend). Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's interesting to think about what a cross-database interface would look like for this; Snowflake has something similar in the snowsight UI. This might be more of an adapter-specific feature, in which case I think the interface would be through a right-click on the data catalog (see #213, where I already anticipated this). I think you're using the mysql adapter, but that's not totally clear. For now... can't you use a USE backendapp;
SELECT * FROM config WHERE updated_at > CURRENT_DATE - 7 DAY |
Beta Was this translation helpful? Give feedback.
It's interesting to think about what a cross-database interface would look like for this; Snowflake has something similar in the snowsight UI. This might be more of an adapter-specific feature, in which case I think the interface would be through a right-click on the data catalog (see #213, where I already anticipated this).
I think you're using the mysql adapter, but that's not totally clear.
For now... can't you use a
USE database
statement before your select query? I think the two queries get executed in the same session, so theUSE
statement should work: