Handbook
Glossary
insert-tuple-set-key ( tuple statement -- )
Vocabulary
db
.
tuples
Inputs
tuple
a
tuple
statement
a
statement
Outputs
None
Word description
Inserts a tuple and sets its primary key in one word. This is necessary for some databases.
Definition
USING:
db
;
IN:
db.tuples
HOOK:
insert-tuple-set-key
db-connection
( tuple statement -- )
Methods
USING:
db.postgresql.private
db.tuples
db.tuples.private
;
M:
postgresql-db-connection
insert-tuple-set-key
query-modify-tuple
;
USING:
db
db.sqlite
db.sqlite.private
db.tuples
db.types
kernel
;
M:
sqlite-db-connection
insert-tuple-set-key
execute-statement
last-insert-id
swap
set-primary-key
;