Help us shape the future of Go! Take the 2026 Go Developer Survey

remoteha

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 15 Imported by: 0

README

go-remote-ha

Overview

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.

Features

  • Remote Access: Connect to SQLite HA databases over the network.
  • Easy Integration: Works with the standard database/sql package in Go.

Installation

To install go-remote-ha, use the following command:

go get -u github.com/litesql/go-remote-ha

Usage

Here’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
}

Embedded replicas

For embedded replicas, use go-sqlite-ha or go-sqlite3-ha drivers.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	Name string
}

func (*Connector) Connect

func (c *Connector) Connect(ctx context.Context) (driver.Conn, error)

func (*Connector) Driver

func (c *Connector) Driver() driver.Driver

type Driver

type Driver struct {
}

func (*Driver) Open

func (d *Driver) Open(name string) (driver.Conn, error)

func (*Driver) OpenConnector

func (d *Driver) OpenConnector(name string) (driver.Connector, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL