mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
bindings/go: enable multiple connections, register all symbols at library load
This commit is contained in:
parent
950f29daab
commit
8d93130809
9 changed files with 313 additions and 284 deletions
|
@ -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{})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue