package sqlite3

import 

var (
	// +checklocks:extRegistryMtx
	extRegistry    []func(*Conn) error
	extRegistryMtx sync.RWMutex
)

// AutoExtension causes the entryPoint function to be invoked
// for each new database connection that is created.
//
// https://sqlite.org/c3ref/auto_extension.html
func ( 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
}