MCPcopy
hub / github.com/dbcli/pgcli / is_insert

Method is_insert

pgcli/packages/sqlcompletion.py:86–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 self.last_token = parsed and parsed.token_prev(len(parsed.tokens))[1] or ""
85
86 def is_insert(self):
87 return self.parsed.token_first().value.lower() == "insert"
88
89 def get_tables(self, scope="full"):
90 """Gets the tables available in the statement.

Callers 1

get_tablesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected