Handbook
Glossary
delete-tuples ( tuple -- )
High-level tuple/database integration
ยป
High-level tuple/database words
Prev:
update-tuples ( query/tuple quot: ( tuple -- tuple'/f ) -- )
Next:
reject-tuples ( query/tuple quot: ( tuple -- ? ) -- )
Vocabulary
db
.
tuples
Inputs
tuple
a
tuple
Outputs
None
Word description
Uses the
tuple
as an exemplar object and deletes any objects that have the same slots set. If a slot is not
f
, then it is used to generate an SQL statement that deletes tuples.
Warning
This word will delete your data.
See also
insert-tuple
,
update-tuple
,
update-tuples
,
reject-tuples
Definition
USING:
classes
db
destructors
kernel
;
IN:
db.tuples
:
delete-tuples
( tuple -- )
dup
dup
class-of
ensure-defined-persistent
<delete-tuples-statement>
[
[
bind-tuple
]
keep
execute-statement
]
with-disposal
;