MCPcopy Index your code
hub / github.com/webpy/webpy / _process_query

Method _process_query

web/db.py:1355–1362  ·  view source on GitHub ↗

Takes the SQLQuery object and returns query string and parameters.

(self, sql_query)

Source from the content-addressed store, hash-verified

1353 DB.__init__(self, db, keywords)
1354
1355 def _process_query(self, sql_query):
1356 """Takes the SQLQuery object and returns query string and parameters."""
1357 # MSSQLDB expects params to be a tuple.
1358 # Overwriting the default implementation to convert params to tuple.
1359 paramstyle = getattr(self, "paramstyle", "pyformat")
1360 query = sql_query.query(paramstyle)
1361 params = sql_query.values()
1362 return query, tuple(params)
1363
1364 def sql_clauses(self, what, tables, where, group, order, limit, offset):
1365 return (

Callers

nothing calls this directly

Calls 2

queryMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected