Source File
registry.go
Belonging Package
github.com/ncruces/go-sqlite3
package sqlite3importvar (// +checklocks:extRegistryMtxextRegistry []func(*Conn) errorextRegistryMtx sync.RWMutex)// AutoExtension causes the entryPoint function to be invoked// for each new database connection that is created.//// https://sqlite.org/c3ref/auto_extension.htmlfunc ( func(*Conn) error) {extRegistryMtx.Lock()defer extRegistryMtx.Unlock()extRegistry = append(extRegistry, )}func initExtensions( *Conn) error {extRegistryMtx.RLock()defer extRegistryMtx.RUnlock()for , := range extRegistry {if := (); != nil {return}}return nil}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |