Handbook
Glossary
select-tuple ( query/tuple -- tuple/f )
High-level tuple/database integration
ยป
High-level tuple/database words
Prev:
each-tuple ( query/tuple quot: ( tuple -- ) -- )
Next:
select-tuples ( query/tuple -- tuples )
Vocabulary
db
.
tuples
Inputs
query/tuple
a
tuple
Outputs
tuple/f
a
tuple
or
f
Word description
An SQL query is constructed from the slots of the exemplar tuple that are not
f
. Returns a single tuple from the database if it matches the query constructed from the exemplar tuple.
See also
each-tuple
,
select-tuples
,
count-tuples
Definition
USING:
accessors
db.tuples.private
kernel
sequences
;
IN:
db.tuples
:
select-tuple
( query/tuple -- tuple/f )
>query
1
>>limit
[
tuple>>
]
[
query>statement
]
bi
do-select
?first
;