Skip to content

Commit 10a47fa

Browse files
committed
Use connect string from --path
1 parent 4140837 commit 10a47fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

chdb/session.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package chdb
22

33
import (
4-
"fmt"
54
"os"
65
"path/filepath"
76

@@ -40,9 +39,8 @@ func NewSession(paths ...string) (*Session, error) {
4039
}
4140
path = tempDir
4241
isTemp = true
43-
4442
}
45-
connStr := fmt.Sprintf("file:%s/chdb.db", path)
43+
connStr := path
4644

4745
conn, err := initConnection(connStr)
4846
if err != nil {

0 commit comments

Comments
 (0)