Handbook
Glossary
update-tuple ( tuple -- )
High-level tuple/database integration
ยป
High-level tuple/database words
Prev:
insert-tuple ( tuple -- )
Next:
update-tuples ( query/tuple quot: ( tuple -- tuple'/f ) -- )
Vocabulary
db
.
tuples
Inputs
tuple
a
tuple
Outputs
None
Word description
Updates a tuple that has already been inserted into a database. The tuple must have a primary key that has been set by
insert-tuple
or that is user-defined.
See also
insert-tuple
,
update-tuples
,
delete-tuples
,
reject-tuples
Definition
USING:
accessors
assocs
classes
db
kernel
namespaces
;
IN:
db.tuples
:
update-tuple
( tuple -- )
dup
class-of
ensure-defined-persistent
db-connection
get
update-statements>>
[
<update-tuple-statement>
]
cache
[
bind-tuple
]
keep
execute-statement
;