-
Can I start a rqlite database inside my app code, like what can be done with go-sqlite? package main
import (
"database/sql"
"log"
_ "github.com/glebarez/go-sqlite"
)
func main() {
db, err := sql.Open("sqlite", ":memory:") // a sqlite database is started here.
if err != nil {
log.Fatal(err)
}
_ = db.QueryRow("select sqlite_version()")
} Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
otoolep
Dec 15, 2022
Replies: 1 comment
-
We do not (yet) have a Go SQL driver for rqlite. Instead you must write your own HTTP-based client or just use the existing client library at https://github.com/rqlite/gorqlite |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
otoolep
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We do not (yet) have a Go SQL driver for rqlite.
Instead you must write your own HTTP-based client or just use the existing client library at https://github.com/rqlite/gorqlite