db.tuples vocabulary
Factor handbook > Vocabulary index


Documentation
High-level tuple/database integration

Words

Tuple classes
ClassSuperclassSlots
no-defined-persistent tupleobject
no-slots-named tupleclass seq
query tupletuple group order offset limit


Generic words
WordStack effect
<count-statement>( query -- statement )
<delete-tuples-statement>( tuple class -- object )
<insert-db-assigned-statement>( class -- object )
<insert-user-assigned-statement>( class -- object )
<select-by-slots-statement>( tuple class -- statement )
<update-tuple-statement>( class -- object )
>query( object -- query )
create-sql-statement( class -- object )
drop-sql-statement( class -- object )
insert-tuple-set-key( tuple statement -- )
query>statement( query -- statement )


Ordinary words
WordStack effect
<query>( -- query )
check-columns( columns class -- )
count-tuples( query/tuple -- n )
create-table( class -- )
define-persistent( class table columns -- )
delete-tuples( tuple -- )
drop-table( class -- )
each-tuple( query/tuple quot: ( tuple -- ) -- )
ensure-defined-persistent( object -- object )
ensure-table( class -- )
ensure-tables( classes -- )
insert-tuple( tuple -- )
no-defined-persistent( object -- * )
no-slots-named( class seq -- * )
recreate-table( class -- )
reject-tuples( query/tuple quot: ( tuple -- ? ) -- )
select-tuple( query/tuple -- tuple/f )
select-tuples( query/tuple -- tuples )
update-tuple( tuple -- )
update-tuples( query/tuple quot: ( tuple -- tuple'/f ) -- )


Class predicate words
WordStack effect
no-defined-persistent?( object -- ? )
no-slots-named?( object -- ? )
query?( object -- ? )


Files


Children
VocabularySummary
db.tuples.privatedb.tuples.private vocabulary