You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vardbUrl="file://tmp/test.db"db, err:=sql.Open("libsql", dbUrl)
iferr!=nil {
fmt.Fprintf(os.Stderr, "failed to open db %s: %s", dbUrl, err)
os.Exit(1)
}
rows, err:=db.Query("select 1")
iferr!=nil {
fmt.Fprintf(os.Stderr, "failed to execute statement: %s", err)
os.Exit(1)
}
The error happens on Query (not the Open!) This does not happen when the file URL is "file:/tmp/test.db" or "file:///tmp/test.db"
The TypeScript driver documents that two leading slashes is not a valid URL, which is fine. We just need a more sensible error message about it, and preferably during Open and not Query.
The text was updated successfully, but these errors were encountered:
The error happens on
Query
(not theOpen
!) This does not happen when the file URL is "file:/tmp/test.db" or "file:///tmp/test.db"The TypeScript driver documents that two leading slashes is not a valid URL, which is fine. We just need a more sensible error message about it, and preferably during
Open
and notQuery
.The text was updated successfully, but these errors were encountered: