Handbook
Glossary
#columns ( result-set -- n )
Furnace framework
»
Database library
»
Low-level database protocol
»
Result sets
Prev:
#rows ( result-set -- n )
Next:
advance-row ( result-set -- )
Vocabulary
db
Inputs
result-set
a
result-set
Outputs
n
an
integer
Word description
Returns the number of columns in a result set.
Definition
IN:
db
GENERIC:
#columns
( result-set -- n )
Methods
USING:
accessors
db
db.mysql
;
M:
mysql-result-set
#columns
#columns>>
;
USING:
accessors
db
db.postgresql
db.postgresql.ffi
;
M:
postgresql-result-set
#columns
handle>>
PQnfields
;
USING:
accessors
db
db.sqlite
db.sqlite.lib
;
M:
sqlite-result-set
#columns
handle>>
sqlite-#columns
;