que/query.py
def build_update(
        self, style: ParamStyleType = DEFAULT_PARAM_STYLE
    ) -> Tuple[str, ArgList]:
        """Build the SQL UPDATE clause.

        Parameters
        --------
        style : defaults :class:`NumParamStyle.NUM`
            The DBAPI 2.0 param-style.

        Returns
        -----
        The generated UPDATE clause of a SQL statement
        The arguments to pass to the DB client for secure formatting.
        """
        updates = []
        args = ArgList()
        for field in self.fields:
            stmt, args = Filter(field, prefix="col").to_sql(args, style)
            updates.append(stmt)
        updates = ",\n  ".join(updates)
        return f"UPDATE\n  {self.table_name}\nSET\n  {updates}", args
Build the SQL UPDATE clause.

        Parameters
        --------
        style : defaults :class:`NumParamStyle.NUM`
            The DBAPI 2.0 param-style.

        Returns
        -----
        The generated UPDATE clause of a SQL statement
        The arguments to pass to the DB client for secure formatting.
        
Build the SQL UPDATE clause.
Parameters



Returns

The generated UPDATE clause of a SQL statement
The arguments to pass to the DB client for secure formatting.
Build the SQL UPDATE clause . Parameters Returns The generated UPDATE clause of a SQL statement The arguments to pass to the DB client for secure formatting .
def build_update(
        self, style: ParamStyleType = DEFAULT_PARAM_STYLE
    ) -> Tuple[str, ArgList]:
        updates = []
        args = ArgList()
        for field in self.fields:
            stmt, args = Filter(field, prefix="col").to_sql(args, style)
            updates.append(stmt)
        updates = ",\n  ".join(updates)
        return f"UPDATE\n  {self.table_name}\nSET\n  {updates}", args
def build_update ( self , style : ParamStyleType = DEFAULT_PARAM_STYLE ) -> Tuple [ str , ArgList ] : updates = [ ] args = ArgList ( ) for field in self . fields : stmt , args = Filter ( field , prefix = "col" ) . to_sql ( args , style ) updates . append ( stmt ) updates = ",\n  " . join ( updates ) return f"UPDATE\n  {self.table_name}\nSET\n  {updates}" , args
Build the SQL UPDATE clause.
Build the SQL UPDATE clause .
"""Build the SQL UPDATE clause.

        Parameters
        --------
        style : defaults :class:`NumParamStyle.NUM`
            The DBAPI 2.0 param-style.

        Returns
        -----
        The generated UPDATE clause of a SQL statement
        The arguments to pass to the DB client for secure formatting.
        """
self
style
ParamStyleType