forked from gluesql/gluesql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
TableFactor::{Derived, Dictionary, Series}
in AstBuilder (g…
…luesql#1007) From now, we can use Dictionary, SERIES(N) and Derived subquery even in AstBuilder! e.g. let actual = glue_objects().select().into(); let expected = "SELECT * FROM GLUE_OBJECTS"; test_query(actual, expected); let actual = glue_tables().select().into(); let expected = "SELECT * FROM GLUE_TABLES"; test_query(actual, expected); let actual = glue_indexes().select().into(); let expected = "SELECT * FROM GLUE_INDEXES"; test_query(actual, expected); let actual = glue_table_columns().select().into(); let expected = "SELECT * FROM GLUE_TABLE_COLUMNS"; test_query(actual, expected); let actual = series("1 + 2").select().into(); let expected = "SELECT * FROM SERIES(1 + 2)"; test_query(actual, expected); let actual = table("Items").select().alias_as("Sub").select().into(); let expected = "SELECT * FROM (SELECT * FROM Items) AS Sub"; test_query(actual, expected);
- Loading branch information
Showing
22 changed files
with
814 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.