db.types vocabulary
Factor handbook > Vocabulary index


Documentation
Database types

Words

Tuple classes
ClassSuperclassSlots
generator-bind tupleslot-name key generator-singleton type
literal-bind tuplekey type value
low-level-binding tuplevalue
no-column tuplecolumn
no-sql-type tupletype
not-persistent tupleclass
sql-spec tupleclass slot-name column-name type primary-key modifiers
unknown-modifier tuplemodifier


Singleton classes
+db-assigned-id+
+random-id+
+user-assigned-id+
BIG-INTEGER
BLOB
BOOLEAN
DATE
DATETIME
DOUBLE
FACTOR-BLOB
INTEGER
NULL
REAL
SIGNED-BIG-INTEGER
TEXT
TIME
TIMESTAMP
UNSIGNED-BIG-INTEGER
URL
VARCHAR
random-id-generator


Union classes
+primary-key+


Generic words
WordStack effect
bind#( spec obj -- )
bind%( spec -- )
compound( string obj -- hash )
persistent-table( -- hash )


Symbol words
+autoincrement+
+cascade+
+default+
+foreign-id+
+has-many+
+not-null+
+null+
+on-delete+
+on-update+
+restrict+
+serial+
+set-default+
+set-null+
+unique+
IGNORE


Ordinary words
WordStack effect
(lookup-type)( obj -- string )
<generator-bind>( slot-name key generator-singleton type -- generator-bind )
<literal-bind>( key type value -- literal-bind )
<low-level-binding>( value -- low-level-binding )
<sql-spec>( class slot-name column-name type modifiers -- sql-spec )
>reference-string( string pair -- string )
db-assigned-id-spec?( specs -- ? )
db-assigned?( class -- ? )
db-columns( class -- object )
db-relations( class -- object )
db-table-name( class -- object )
filter-ignores( tuple specs -- specs' )
find-primary-key( specs -- seq )
lookup-create-type( obj -- string )
lookup-modifier( obj -- string )
lookup-type( obj -- string )
modifiers( spec -- string )
no-column( column -- * )
no-sql-type( type -- * )
normalize-spec( spec -- )
not-persistent( class -- * )
number>string*( n/string -- string )
primary-key?( spec -- ? )
relation?( spec -- ? )
remove-db-assigned-id( specs -- obj )
remove-id( specs -- obj )
remove-relations( specs -- newcolumns )
set-primary-key( value tuple -- )
spec>tuple( class spec -- tuple )
unknown-modifier( modifier -- * )
user-assigned-id-spec?( specs -- ? )


Class predicate words
WordStack effect
+db-assigned-id+?( object -- ? )
+primary-key+?( object -- ? )
+random-id+?( object -- ? )
+user-assigned-id+?( object -- ? )
BIG-INTEGER?( object -- ? )
BLOB?( object -- ? )
BOOLEAN?( object -- ? )
DATE?( object -- ? )
DATETIME?( object -- ? )
DOUBLE?( object -- ? )
FACTOR-BLOB?( object -- ? )
INTEGER?( object -- ? )
NULL?( object -- ? )
REAL?( object -- ? )
SIGNED-BIG-INTEGER?( object -- ? )
TEXT?( object -- ? )
TIME?( object -- ? )
TIMESTAMP?( object -- ? )
UNSIGNED-BIG-INTEGER?( object -- ? )
URL?( object -- ? )
VARCHAR?( object -- ? )
generator-bind?( object -- ? )
literal-bind?( object -- ? )
low-level-binding?( object -- ? )
no-column?( object -- ? )
no-sql-type?( object -- ? )
not-persistent?( object -- ? )
random-id-generator?( object -- ? )
sql-spec?( object -- ? )
unknown-modifier?( object -- ? )


Files