Expand explanation of openblob semantics (#149)

Per @ncruces' comments in https://github.com/ncruces/go-sqlite3/issues/148#issuecomment-2334155468, this change clarifies the documentation for openblob to help clients understand the lifecycle of the blob handle within the callback.
This commit is contained in:
Michael Lynch
2024-09-06 13:15:20 -04:00
committed by GitHub
parent 52f9af3ca0
commit c1915feb2e

View File

@@ -27,6 +27,10 @@ import (
// using [sqlite3.BindPointer] or [sqlite3.Pointer]. // using [sqlite3.BindPointer] or [sqlite3.Pointer].
// The optional args will be passed to the callback, // The optional args will be passed to the callback,
// along with the [sqlite3.Blob] handle. // 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 // https://sqlite.org/c3ref/blob.html
func Register(db *sqlite3.Conn) error { func Register(db *sqlite3.Conn) error {