Skip to content

Go SDK

Go SDK

Go client for HeliosDB-Lite server.

Installation

Terminal window
go get github.com/heliosdb/heliosdb-lite-go

Quick Start

package main
import (
"context"
"fmt"
helios "github.com/heliosdb/heliosdb-lite-go"
)
func main() {
client := helios.NewClient("http://localhost:8080", "api-key")
defer client.Close()
ctx := context.Background()
// Query
result, err := client.Query(ctx, "SELECT * FROM users")
if err != nil {
panic(err)
}
for _, row := range result.Rows {
fmt.Println(row)
}
}
results, err := client.VectorSearch(ctx, "documents", "query", &helios.SearchOptions{
TopK: 10,
MinScore: ptr(0.5),
})

Branching

client.CreateBranch(ctx, "dev", "main")
client.MergeBranch(ctx, "dev", "main")

See API Reference for complete documentation.