Skip to content

Is there a way to switch connections within a single SQL notebook between queries? #83

Answered by cmoog
Lilit0x asked this question in Q&A
Discussion options

You must be logged in to vote

Right now there isn't a way to achieve this. Switching active connections requires invocation in the sidebar.

It sounds like you're trying to use a SQL notebook for an end-to-end testing framework. I don't think it'll be possible for us to make SQL Notebook remain minimal and simple while also serving both the interactive prototyping and automated end-to-end testing use cases. At present, we perform a very minimal parsing of the actual SQL file, only for separating cells. Your proposal would require parsing the SQL into a AST, handling various different dialects, etc. I don't think this is worth the trade off.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@cmoog
Comment options

@cmoog
Comment options

@Lilit0x
Comment options

@Lilit0x
Comment options

@cmoog
Comment options

cmoog Feb 5, 2024
Maintainer

Answer selected by Lilit0x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants