Handbook
Glossary
last-insert-id ( -- id )
Vocabulary
db
.
sqlite
Inputs
None
Outputs
id
an
object
Definition
USING:
accessors
db
db.sqlite.ffi
kernel
math
namespaces
;
IN:
db.sqlite
:
last-insert-id
( -- id )
db-connection
get
handle>>
sqlite3_last_insert_rowid
dup
zero?
[
sqlite-last-id-fail
]
when
;