We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5022c commit 6856a92Copy full SHA for 6856a92
.gitignore
@@ -6,3 +6,4 @@ install.sh
6
govarnam.pc
7
8
*.vst
9
+a
govarnam/symbol.go
@@ -41,16 +41,18 @@ type Token struct {
41
character string // Non language character
42
}
43
44
+var sqlite3WithLimitDriverRegistered bool
45
var sqlite3Conn *sqlite3.SQLiteConn
46
47
func openDB(path string) (*sql.DB, error) {
- if sqlite3Conn == nil {
48
+ if !sqlite3WithLimitDriverRegistered {
49
sql.Register("sqlite3_with_limit", &sqlite3.SQLiteDriver{
50
ConnectHook: func(conn *sqlite3.SQLiteConn) error {
51
sqlite3Conn = conn
52
return nil
53
},
54
})
55
+ sqlite3WithLimitDriverRegistered = true
56
57
58
conn, err := sql.Open("sqlite3_with_limit", path)
0 commit comments