Audit with AI
This commit is contained in:
@@ -19,6 +19,12 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
// WARNING: DELETE without WHERE clause will delete ALL rows in the table.
|
||||
// Always use Where() to specify conditions unless you intentionally want to delete all rows.
|
||||
// Example:
|
||||
// table.Delete().Where(field.Eq(value)).Exec(ctx) // Safe
|
||||
// table.Delete().Exec(ctx) // Deletes ALL rows!
|
||||
|
||||
func (q *deleteQry) Where(cond ...Conditioner) WhereOrExec {
|
||||
q.condition = append(q.condition, cond...)
|
||||
return q
|
||||
|
||||
Reference in New Issue
Block a user