mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Function aux data.
This commit is contained in:
@@ -29,7 +29,7 @@ func (s *handleState) Close() (err error) {
|
||||
|
||||
func GetHandle(ctx context.Context, id uint32) any {
|
||||
if id == 0 {
|
||||
panic(NilErr)
|
||||
return nil
|
||||
}
|
||||
s := ctx.Value(handleKey{}).(*handleState)
|
||||
return s.handles[^id]
|
||||
|
||||
Reference in New Issue
Block a user