insert-tuple ( tuple -- )
High-level tuple/database integration ยป High-level tuple/database words

Prev:drop-table ( class -- )
Next:update-tuple ( tuple -- )


Vocabulary
db.tuples

Inputs
tuplea tuple


Outputs
None

Word description
Inserts a tuple into a database if a relation has been defined with define-persistent. If a mapping states that the database assigns a primary key to the tuple, this value will be set after this word runs.

Notes
Objects should only be inserted into a database once per object. To store the object after the initial insert, call update-tuple.

See also
update-tuple, update-tuples, delete-tuples, reject-tuples

Definition