Handbook
Glossary
each-tuple ( query/tuple quot: ( tuple -- ) -- )
High-level tuple/database integration
ยป
High-level tuple/database words
Prev:
reject-tuples ( query/tuple quot: ( tuple -- ? ) -- )
Next:
select-tuple ( query/tuple -- tuple/f )
Vocabulary
db
.
tuples
Inputs
query/tuple
a
tuple
quot
a
quotation
with stack effect
( tuple -- )
Outputs
None
Word description
An SQL query is constructed from the slots of the exemplar tuple that are not
f
. The
quot
is applied to each tuple from the database that matches the query constructed from the exemplar tuple.
See also
select-tuple
,
select-tuples
,
count-tuples
Definition
USING:
accessors
db.tuples.private
kernel
;
IN:
db.tuples
:
each-tuple
( query/tuple quot: ( tuple -- ) -- )
[
>query
[
tuple>>
]
[
query>statement
]
bi
]
dip
do-each-tuple
;
inline