Fork of ncruces/go-sqlite3 (MIT, retained). Renames module to github.com/hanzoai/sqlite3 (wasm blob stays upstream ncruces/go-sqlite3-wasm) and adds the hanzovfs package: a pure-Go, no-FUSE SQLite VFS that seals pages with ChaCha20-Poly1305 (per-tenant DEK, HIP-0302) for per-tenant SQLite ⇒ hanzoai/vfs ⇒ S3. Deprecates modernc.org/sqlite (no custom-VFS hook) and direct ncruces use. Benchmarked 3.6x faster writes / ~92x faster point-reads than FUSE; encryption ~free. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
14 lines
398 B
Go
14 lines
398 B
Go
package sqlite3
|
|
|
|
import "github.com/hanzoai/sqlite3/internal/util"
|
|
|
|
// Pointer returns a pointer to a value that can be used as an argument to
|
|
// [database/sql.DB.Exec] and similar methods.
|
|
// Pointer should NOT be used with [Stmt.BindPointer],
|
|
// [Value.Pointer], or [Context.ResultPointer].
|
|
//
|
|
// https://sqlite.org/bindptr.html
|
|
func Pointer(value any) any {
|
|
return util.Pointer{Value: value}
|
|
}
|