bindings/go: enable multiple connections, register all symbols at library load

This commit is contained in:
PThorpe92 2025-01-31 13:22:48 -05:00
parent 950f29daab
commit 8d93130809
No known key found for this signature in database
GPG key ID: 66DB3FBACBDD05CC
9 changed files with 313 additions and 284 deletions

View file

@ -3,7 +3,6 @@
package limbo
import (
"database/sql"
"fmt"
"os"
"path/filepath"
@ -44,11 +43,3 @@ func loadLibrary() (uintptr, error) {
}
return 0, fmt.Errorf("%s library not found in LD_LIBRARY_PATH or CWD", libName)
}
func init() {
err := ensureLibLoaded()
if err != nil {
panic(err)
}
sql.Register("sqlite3", &limboDriver{})
}