que/query.py
def to_sql(
        self, args: ArgList = None, style: ParamStyleType = DEFAULT_PARAM_STYLE
    ) -> Tuple[str, ArgList]:
        """Generate the ``WHERE`` clause of a SQL statement.

        Parameters
        ----------
        args : optional
            The list of :class:`Fields` which will serve as arguments for formatting the SQL statement.
        style : defaults :class:`NumParamStyle.NUM`

        Returns
        -------
        The WHERE clause for your SQL statement.
        A list of args to pass on to the DB client when performing the query.
        """
        args = args or ArgList()
        where = []
        for fylter in self:
            sql, args = fylter.to_sql(args, style)
            where.append(sql)
        where = "AND\n  ".join(where)

        return f"WHERE\n  {where}" if where else "", args
Generate the ``WHERE`` clause of a SQL statement.

        Parameters
        ----------
        args : optional
            The list of :class:`Fields` which will serve as arguments for formatting the SQL statement.
        style : defaults :class:`NumParamStyle.NUM`

        Returns
        -------
        The WHERE clause for your SQL statement.
        A list of args to pass on to the DB client when performing the query.
        
Generate the ``WHERE`` clause of a SQL statement.
Parameters

args : optional
The list of :class:`Fields` which will serve as arguments for formatting the SQL statement.

Returns

The WHERE clause for your SQL statement.
A list of args to pass on to the DB client when performing the query.
Generate the ` ` WHERE ` ` clause of a SQL statement . Parameters args : optional The list of : class : ` Fields ` which will serve as arguments for formatting the SQL statement . Returns The WHERE clause for your SQL statement . A list of args to pass on to the DB client when performing the query .
def to_sql(
        self, args: ArgList = None, style: ParamStyleType = DEFAULT_PARAM_STYLE
    ) -> Tuple[str, ArgList]:
        args = args or ArgList()
        where = []
        for fylter in self:
            sql, args = fylter.to_sql(args, style)
            where.append(sql)
        where = "AND\n  ".join(where)
        return f"WHERE\n  {where}" if where else "", args
def to_sql ( self , args : ArgList = None , style : ParamStyleType = DEFAULT_PARAM_STYLE ) -> Tuple [ str , ArgList ] : args = args or ArgList ( ) where = [ ] for fylter in self : sql , args = fylter . to_sql ( args , style ) where . append ( sql ) where = "AND\n  " . join ( where ) return f"WHERE\n  {where}" if where else "" , args
Generate the ``WHERE`` clause of a SQL statement.
Generate the ` ` WHERE ` ` clause of a SQL statement .
"""Generate the ``WHERE`` clause of a SQL statement.

        Parameters
        ----------
        args : optional
            The list of :class:`Fields` which will serve as arguments for formatting the SQL statement.
        style : defaults :class:`NumParamStyle.NUM`

        Returns
        -------
        The WHERE clause for your SQL statement.
        A list of args to pass on to the DB client when performing the query.
        """
self
args
ArgList
style
ParamStyleType