Handbook
Glossary
<update-tuple-statement> ( class -- object )
High-level tuple/database integration
ยป
Tuple database protocol
Prev:
<insert-user-assigned-statement> ( class -- object )
Next:
<delete-tuples-statement> ( tuple class -- object )
Vocabulary
db
.
tuples
Inputs
class
a
class
Outputs
object
an
object
Word description
A database-specific hook for generating the SQL for an update statement.
Definition
USING:
db
;
IN:
db.tuples
HOOK:
<update-tuple-statement>
db-connection
( class -- object )
Methods
USING:
accessors
db
db.queries
db.tuples
db.types
kernel
nmake
sequences
;
M:
db-connection
<update-tuple-statement>
[
"update "
0%
0%
" set "
0%
dup
remove-id
[
", "
0%
]
[
dup
column-name>>
0%
" = "
0%
bind%
]
interleave
where-primary-key%
]
query-make
;