MCPcopy
hub / github.com/andialbrecht/sqlparse / get_parameters

Method get_parameters

sqlparse/sql.py:624–634  ·  view source on GitHub ↗

Return a list of parameters.

(self)

Source from the content-addressed store, hash-verified

622 """A function or procedure call."""
623
624 def get_parameters(self):
625 """Return a list of parameters."""
626 parenthesis = self.token_next_by(i=Parenthesis)[1]
627 result = []
628 for token in parenthesis.tokens:
629 if isinstance(token, IdentifierList):
630 return token.get_identifiers()
631 elif imt(token, i=(Function, Identifier, TypedLiteral),
632 t=T.Literal):
633 result.append(token)
634 return result
635
636 def get_window(self):
637 """Return the window if it exists."""

Calls 3

imtFunction · 0.90
token_next_byMethod · 0.80
get_identifiersMethod · 0.80