go-remote-ha is a Go database/sql driver designed for remote access to SQLite HA databases. This driver enables seamless interaction with high-availability SQLite databases, making it easier to build robust applications that require reliable data access.
- Remote Access: Connect to SQLite HA databases over the network.
- Easy Integration: Works with the standard
database/sqlpackage in Go.
To install go-remote-ha, use the following command:
go get -u github.com/litesql/go-remote-haHere’s a simple example of how to use go-remote-ha:
package main
import (
"database/sql"
_ "github.com/litesql/go-remote-ha"
)
func main() {
db, err := sql.Open("remote-ha", "your-dsn-here")
if err != nil {
panic(err)
}
defer db.Close()
// Your database operations here
}For embedded replicas, use go-sqlite-ha or go-sqlite3-ha drivers.
This project is licensed under the MIT License - see the LICENSE file for details.