MCPcopy Index your code
hub / github.com/tobymao/sqlglot / parse_one

Function parse_one

sqlglot/__init__.py:114–121  ·  view source on GitHub ↗
(
    sql: str,
    *,
    read: DialectType = ...,
    dialect: DialectType = ...,
    into: Type[E],
    **opts: Unpack[ParserNoDialectArgs],
)

Source from the content-addressed store, hash-verified

112
113@t.overload
114def parse_one(
115 sql: str,
116 *,
117 read: DialectType = ...,
118 dialect: DialectType = ...,
119 into: Type[E],
120 **opts: Unpack[ParserNoDialectArgs],
121) -> E: ...
122
123
124@t.overload

Callers 15

from_strMethod · 0.90
test_prettyMethod · 0.90
test_recursionMethod · 0.90
test_simpleMethod · 0.90
test_lambdaMethod · 0.90
test_udfMethod · 0.90
test_cteMethod · 0.90
test_joinMethod · 0.90
test_window_functionsMethod · 0.90
test_pre_matchingsMethod · 0.90
test_identifierMethod · 0.90

Calls 4

ParseErrorClass · 0.90
get_or_raiseMethod · 0.80
parse_intoMethod · 0.45
parseMethod · 0.45

Tested by 15

test_prettyMethod · 0.72
test_recursionMethod · 0.72
test_simpleMethod · 0.72
test_lambdaMethod · 0.72
test_udfMethod · 0.72
test_cteMethod · 0.72
test_joinMethod · 0.72
test_window_functionsMethod · 0.72
test_pre_matchingsMethod · 0.72
test_identifierMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…