que/query.py
def to_sql(
        self, style: ParamStyleType = DEFAULT_PARAM_STYLE, inject_columns: bool = False
    ) -> Tuple[str, Union[List, Dict]]:
        """Build the SQL INSERT statement and format the list of arguments to pass to the DB client.

        Parameters
        --------
        style : defaults :class:`NumParamStyle.NUM`
            The DBAPI 2.0 param-style.
        inject_columns: defaults False
            Inject the column names directly, rather than rely on DBAPI formatting.
            This is necessary for some client, such as ``asyncpg``.

        Returns
        -----
        The generated SQL INSERT statement
        The arguments to pass to the DB client for secure formatting.
        """
        query, args = self.build_insert(style, inject_columns=inject_columns)
        return query, args.for_sql(style)
Build the SQL INSERT statement and format the list of arguments to pass to the DB client.

        Parameters
        --------
        style : defaults :class:`NumParamStyle.NUM`
            The DBAPI 2.0 param-style.
        inject_columns: defaults False
            Inject the column names directly, rather than rely on DBAPI formatting.
            This is necessary for some client, such as ``asyncpg``.

        Returns
        -----
        The generated SQL INSERT statement
        The arguments to pass to the DB client for secure formatting.
        
Build the SQL INSERT statement and format the list of arguments to pass to the DB client.
Parameters



Returns

The generated SQL INSERT statement
The arguments to pass to the DB client for secure formatting.
Build the SQL INSERT statement and format the list of arguments to pass to the DB client . Parameters Returns The generated SQL INSERT statement The arguments to pass to the DB client for secure formatting .
def to_sql(
        self, style: ParamStyleType = DEFAULT_PARAM_STYLE, inject_columns: bool = False
    ) -> Tuple[str, Union[List, Dict]]:
        query, args = self.build_insert(style, inject_columns=inject_columns)
        return query, args.for_sql(style)
def to_sql ( self , style : ParamStyleType = DEFAULT_PARAM_STYLE , inject_columns : bool = False ) -> Tuple [ str , Union [ List , Dict ] ] : query , args = self . build_insert ( style , inject_columns = inject_columns ) return query , args . for_sql ( style )
Build the SQL INSERT statement and format the list of arguments to pass to the DB client.
Build the SQL INSERT statement and format the list of arguments to pass to the DB client .
"""Build the SQL INSERT statement and format the list of arguments to pass to the DB client.

        Parameters
        --------
        style : defaults :class:`NumParamStyle.NUM`
            The DBAPI 2.0 param-style.
        inject_columns: defaults False
            Inject the column names directly, rather than rely on DBAPI formatting.
            This is necessary for some client, such as ``asyncpg``.

        Returns
        -----
        The generated SQL INSERT statement
        The arguments to pass to the DB client for secure formatting.
        """
self
style
ParamStyleType
inject_columns
bool