neuralib.sqlp.stat.SqlUpdateStat
- class neuralib.sqlp.stat.SqlUpdateStat[source]
Bases:
SqlStat[T],SqlWhereStat,SqlLimitStat,SqlReturnStat,Generic[T]- __init__(table)
- Parameters:
table (type[T] | None)
Methods
__init__(table)add(stat)Add SQL token.
build()build a SQL statement.
drop()from_(query)limit(*args)order_by(*by)returning(*expr)submit()build the SQL statement and execute.
where(*expr)WHEREclause: https://www.sqlite.org/lang_select.html#whereclause- from_(query)[source]
- Parameters:
query (SqlStat | SqlAlias[SqlSubQuery])
- Return type:
Self