MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / as_sql

Method as_sql

apps/common/db/compiler.py:212–217  ·  view source on GitHub ↗
(self, with_limits=True, with_col_aliases=False, select_string=None)

Source from the content-addressed store, hash-verified

210 self.query.reset_refcounts(refcounts_before)
211
212 def as_sql(self, with_limits=True, with_col_aliases=False, select_string=None):
213 if select_string is None:
214 return super().as_sql(with_limits, with_col_aliases)
215 else:
216 sql, params = self.get_query_str(with_table_name=False)
217 return (select_string + " " + sql), params

Callers

nothing calls this directly

Calls 1

get_query_strMethod · 0.95

Tested by

no test coverage detected