MCPcopy Create free account
hub / github.com/apache/datafusion / new

Method new

datafusion/sql/src/parser.rs:399–405  ·  view source on GitHub ↗

Create a new parser builder for the specified tokens using the [`GenericDialect`].

(input: impl Into<ParserInput<'a>>)

Source from the content-addressed store, hash-verified

397 /// Create a new parser builder for the specified tokens using the
398 /// [`GenericDialect`].
399 pub fn new(input: impl Into<ParserInput<'a>>) -> Self {
400 Self {
401 input: input.into(),
402 dialect: &DEFAULT_DIALECT,
403 recursion_limit: DEFAULT_RECURSION_LIMIT,
404 }
405 }
406
407 /// Adjust the parser builder's dialect. Defaults to [`GenericDialect`]
408 pub fn with_dialect(mut self, dialect: &'b dyn Dialect) -> Self {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
intoMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected