Skip to content

Commit

Permalink
chore(embedded/sql): continue to support databases and tables datasou…
Browse files Browse the repository at this point in the history
…rces

Signed-off-by: Jeronimo Irazabal <[email protected]>
  • Loading branch information
jeroiraz committed Oct 27, 2023
1 parent d62372e commit 3456bb5
Show file tree
Hide file tree
Showing 2 changed files with 233 additions and 210 deletions.
10 changes: 10 additions & 0 deletions embedded/sql/sql_grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,16 @@ ds:
$2.(*SelectStmt).as = $4
$$ = $2.(DataSource)
}
|
DATABASES '(' ')' opt_as
{
$$ = &FnDataSourceStmt{fnCall: &FnCall{fn: "databases"}, as: $4}
}
|
TABLES '(' ')' opt_as
{
$$ = &FnDataSourceStmt{fnCall: &FnCall{fn: "tables"}, as: $4}
}
|
fnCall opt_as
{
Expand Down
Loading

0 comments on commit 3456bb5

Please sign in to comment.