Skip to content

Instance Property

predicate

A predicate specifying which rows to delete.
var predicate: (any SQLExpression)?

Discussion

If this is nil, all records in the table are deleted. When this is the intended behavior, TRUNCATE is usually much faster, but does not play nicely with transactions in some dialects.