We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 379cdc3 commit 6057246Copy full SHA for 6057246
1 file changed
cmd/libsql-http-proxy/main.go
@@ -96,8 +96,8 @@ func main() {
96
}
97
98
for _, dbPath := range fs.GetArgs() {
99
- if strings.HasPrefix(dbPath, "file:") {
100
- sqlDB, err := sql.Open("libsql", dbPath)
+ if strings.HasPrefix(dbPath, "local:") {
+ sqlDB, err := sql.Open("libsql", "file:"+strings.TrimPrefix(dbPath, "local:"))
101
if err != nil {
102
log.Fatalf("connecting to database %q: %v", dbPath, err)
103
0 commit comments