Skip to content

Commit c1915fe

Browse files
authored
Expand explanation of openblob semantics (#149)
Per @ncruces' comments in #148 (comment), this change clarifies the documentation for openblob to help clients understand the lifecycle of the blob handle within the callback.
1 parent 52f9af3 commit c1915fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/blobio/blob.go

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ import (
2727
// using [sqlite3.BindPointer] or [sqlite3.Pointer].
2828
// The optional args will be passed to the callback,
2929
// along with the [sqlite3.Blob] handle.
30+
// The [sqlite3.Blob] handle is only valid during
31+
// the execution of the callback. Callers cannot
32+
// read or write to the handle after the callback
33+
// exits.
3034
//
3135
// https://sqlite.org/c3ref/blob.html
3236
func Register(db *sqlite3.Conn) error {

0 commit comments

Comments
 (0)