Skip to content

Commit

Permalink
Expand explanation of openblob semantics
Browse files Browse the repository at this point in the history
Per @ncruces' comments in ncruces#148 (comment), this change clarifies the documentation for openblob to help clients understand the lifecycle of the blob handle within the callback.
  • Loading branch information
mtlynch committed Sep 6, 2024
1 parent 52f9af3 commit 9491e67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/blobio/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import (
// using [sqlite3.BindPointer] or [sqlite3.Pointer].
// The optional args will be passed to the callback,
// along with the [sqlite3.Blob] handle.
// The [sqlite3.Blob] handle is only valid during
// the execution of the callback. Callers cannot
// read or write to the handle after the callback
// exits.
//
// https://sqlite.org/c3ref/blob.html
func Register(db *sqlite3.Conn) error {
Expand Down

0 comments on commit 9491e67

Please sign in to comment.