parameters: (self, paramstyle=None)
return_statement: return s
docstring: Returns the query part of the sql query.
              >>> q = SQLQuery(["SELECT * FROM test WHERE name=", SQLParam('joe')])
              >>> q.query()
              'SELECT * FROM test WHERE name=%s'
              >>> q.query(paramstyle='qmark')
              'SELECT * FROM test WHERE name=?'
docstring_summary: Returns the query part of the sql query.
              >>> q = SQLQuery(["SELECT * FROM test WHERE name=", SQLParam('joe')])
              >>> q.query()
              'SELECT * FROM test WHERE name=%s'
              >>> q.query(paramstyle='qmark')
              'SELECT * FROM test WHERE name=?'
docstring_tokens: Returns the query part of the sql query . >>> q = SQLQuery ( [ SELECT * FROM test WHERE name = SQLParam ( joe ) ] ) >>> q . query () SELECT * FROM test WHERE name = %s >>> q . query ( paramstyle = qmark ) SELECT * FROM test WHERE name = ?
function: def query(self, paramstyle=None):
          """
          Returns the query part of the sql query.
              >>> q = SQLQuery(["SELECT * FROM test WHERE name=", SQLParam('joe')])
              >>> q.query()
              'SELECT * FROM test WHERE name=%s'
              >>> q.query(paramstyle='qmark')
              'SELECT * FROM test WHERE name=?'
          """
          s = ''
          for x in self.items:
              if isinstance(x, SQLParam):
                  x = x.get_marker(paramstyle)
              s += x
          return s
function_tokens: def query ( self , paramstyle = None ) : s = '' for x in self . items : if isinstance ( x , SQLParam ) : x = x . get_marker ( paramstyle ) s += x return s