Skip to content

Method to get current database context for select query #662

Closed Answered by tobymao
10bas10 asked this question in Q&A
Discussion options

You must be logged in to vote

when you call the optimizer on on a sql query, you can pass in a multi level nested dict

database -> schema -> table, or just schema -> table. if your queries don't use database because they have an inferred schema, then just use the schema -> table mapping

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@10bas10
Comment options

@10bas10
Comment options

@barakalon
Comment options

@tobymao
Comment options

@10bas10
Comment options

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