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

        Parameters
        ----------
        args : optional
            The mutable, ordered list of arguments.
        style : optional
            The DBAPI 2.0 compliant param-style you wish to use in the generated SQL.

        Returns
        -------
        The SQL fragment, as str
        The :class:`ArgList` which will be passed on to the DB client for secure formatting.
        """
        args = args or ArgList()
        args.append(self.field)
        fmt = f"{style}"
        if style in NameParamStyle:
            name = f"{self.prefix}{self.field.name}"
            fmt = fmt.format(name)
            args[-1] = dataclasses.replace(self.field, name=name)
        elif style in NumParamStyle:
            fmt = fmt.format(len(args))
        return f"{self.field.name} {self.opcode} {fmt}", args
Generate a single filter clause of a SQL Statement.

        Parameters
        ----------
        args : optional
            The mutable, ordered list of arguments.
        style : optional
            The DBAPI 2.0 compliant param-style you wish to use in the generated SQL.

        Returns
        -------
        The SQL fragment, as str
        The :class:`ArgList` which will be passed on to the DB client for secure formatting.
        
Generate a single filter clause of a SQL Statement.
Parameters

args : optional
The mutable, ordered list of arguments.
style : optional
The DBAPI 2.0 compliant param-style you wish to use in the generated SQL.

Returns

The SQL fragment, as str
The :class:`ArgList` which will be passed on to the DB client for secure formatting.
Generate a single filter clause of a SQL Statement . Parameters args : optional The mutable ordered list of arguments . style : optional The DBAPI 2 . 0 compliant param - style you wish to use in the generated SQL . Returns The SQL fragment as str The : class : ` ArgList ` which will be passed on to the DB client for secure formatting .
def to_sql(
        self, args: "ArgList" = None, style: ParamStyleType = DEFAULT_PARAM_STYLE
    ) -> Tuple[str, "ArgList"]:
        args = args or ArgList()
        args.append(self.field)
        fmt = f"{style}"
        if style in NameParamStyle:
            name = f"{self.prefix}{self.field.name}"
            fmt = fmt.format(name)
            args[-1] = dataclasses.replace(self.field, name=name)
        elif style in NumParamStyle:
            fmt = fmt.format(len(args))
        return f"{self.field.name} {self.opcode} {fmt}", args
def to_sql ( self , args : "ArgList" = None , style : ParamStyleType = DEFAULT_PARAM_STYLE ) -> Tuple [ str , "ArgList" ] : args = args or ArgList ( ) args . append ( self . field ) fmt = f"{style}" if style in NameParamStyle : name = f"{self.prefix}{self.field.name}" fmt = fmt . format ( name ) args [ - 1 ] = dataclasses . replace ( self . field , name = name ) elif style in NumParamStyle : fmt = fmt . format ( len ( args ) ) return f"{self.field.name} {self.opcode} {fmt}" , args
Generate a single filter clause of a SQL Statement.
Generate a single filter clause of a SQL Statement .
"""Generate a single filter clause of a SQL Statement.

        Parameters
        ----------
        args : optional
            The mutable, ordered list of arguments.
        style : optional
            The DBAPI 2.0 compliant param-style you wish to use in the generated SQL.

        Returns
        -------
        The SQL fragment, as str
        The :class:`ArgList` which will be passed on to the DB client for secure formatting.
        """
self
args
"ArgList"
style
ParamStyleType