Skip to content

Commit 6057246

Browse files
use local: in libsql
1 parent 379cdc3 commit 6057246

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/libsql-http-proxy/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ func main() {
9696
}
9797

9898
for _, dbPath := range fs.GetArgs() {
99-
if strings.HasPrefix(dbPath, "file:") {
100-
sqlDB, err := sql.Open("libsql", dbPath)
99+
if strings.HasPrefix(dbPath, "local:") {
100+
sqlDB, err := sql.Open("libsql", "file:"+strings.TrimPrefix(dbPath, "local:"))
101101
if err != nil {
102102
log.Fatalf("connecting to database %q: %v", dbPath, err)
103103
}

0 commit comments

Comments
 (0)