We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
table_factor
I want to parse some table_factor with args like
"Table(3)"
but without parsing full sentense (SELECT * FROM Table(3))
SELECT * FROM Table(3)
I found there is fn parse_table_factor but it seem like it can not be used stand-alone
fn parse_table_factor
The text was updated successfully, but these errors were encountered:
@devgony
#[test] fn parse_table_factor() { let dialect = GenericDialect {}; let mut parser = Parser::new( Tokenizer::new(&dialect, "Table(3)").tokenize().unwrap(), &dialect, ); let table_factor = parser.parse_table_factor().unwrap(); println!("{:#?}", table_factor) }
This prints:
TableFunction { expr: Value( Number( "3", false, ), ), alias: None, }
I'm pretty sure you can do it externally from the crate, as everything I used is public.
Sorry, something went wrong.
@devgony, can you please close this issue? I think it is solved, right...?
No branches or pull requests
I want to parse some table_factor with args like
"Table(3)"
but without parsing full sentense (
SELECT * FROM Table(3)
)I found there is
fn parse_table_factor
but it seem like it can not be used stand-aloneThe text was updated successfully, but these errors were encountered: