Handbook
Glossary
<count-statement> ( query -- statement )
High-level tuple/database integration
ยป
Tuple database protocol
Prev:
<select-by-slots-statement> ( tuple class -- statement )
Vocabulary
db
.
tuples
Inputs
query
a
query
Outputs
statement
a
statement
Word description
A database-specific hook for generating the SQL for a count statement.
Definition
USING:
db
;
IN:
db.tuples
HOOK:
<count-statement>
db-connection
( query -- statement )
Methods
USING:
accessors
classes
db
db.queries
db.tuples
kernel
nmake
;
M:
db-connection
<count-statement>
[
tuple>>
dup
class-of
]
keep
[
[
"select count(*) from "
0%
0%
where-clause
]
query-make
]
dip
make-query*
;