with-sqlite-blob (blob-var table-name column-name rowid &key database owner read-only) &body body => results-of-body
The macro with-sqlite-blob
opens a BLOB by calling sqlite-open-blob with database, owner, table-name, column-name, rowid and read-only, binds blob-var to the resulting sqlite-blob, and evaluates the forms in body (as an implicit progn
) inside the binding and inside an unwind-protect
that closes blob-var on exit.
The return values of with-sqlite-blob
, results-of-body, are whatever body returns.
Because with-sqlite-blob
guarantees to close the BLOB when it exits, you should use it in preference to calling sqlite-open-blob directly.
LispWorks User Guide and Reference Manual - 20 Sep 2017