no-mistakes-postgres-sql 0.109.128

PostgreSQL SQL parsing, statement facts, and identifier extraction for no-mistakes
Documentation
1
2
3
4
5
6
7
use sqlparser::tokenizer::TokenWithSpan;

/// Lexical tokens of `sql`, including comments, split the way the source-fact
/// parser splits them. A valid lexical prefix is kept when a later token fails.
pub fn source_tokens_with_location(sql: &str) -> Vec<TokenWithSpan> {
    super::prepare_postgres_tokens(sql).tokens
}