(self, paramstyle=None)
return s
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=?'
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=?'
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 = ?
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
def query ( self , paramstyle = None ) : s = '' for x in self . items : if isinstance ( x , SQLParam ) : x = x . get_marker ( paramstyle ) s += x return s