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)

LIMIT: https://www.sqlite.org/lang_select.html#limitoffset

order_by(*by)

ORDER BY: https://www.sqlite.org/lang_select.html#orderby

returning(*expr)

submit()

build the SQL statement and execute.

where(*expr)

WHERE clause: https://www.sqlite.org/lang_select.html#whereclause

from_(query)[source]
Parameters:

query (SqlStat | SqlAlias[SqlSubQuery])

Return type:

Self