chdb-io / chdb-go-bak

Native Go bindings for chDB, an in-process SQL OLAP Engine powered by ClickHouse

Home Page:https://chdb.dev

Repository from Github https://github.comchdb-io/chdb-go-bakRepository from Github https://github.comchdb-io/chdb-go-bak

chDB-go

chdb-go

chDB go bindings for fun and hacking.

Status

  • experimental, unstable, subject to changes
  • requires libchdb on the system
  • requires CGO

Example

package main

import (
    "fmt"
    "github.com/chdb-io/chdb-go/chdb"
)

func main() {
    // Stateless Query (ephemeral)
    result := chdb.Query("SELECT version()", "CSV")
    fmt.Println(result)

    // Stateful Query (persistent)
    chdb.Session("CREATE FUNCTION IF NOT EXISTS hello AS () -> 'chDB'", "CSV", "/tmp")
    hello := chdb.Session("SELECT hello()", "CSV", "/tmp")
    fmt.Println(hello)
}

đź‘‹ C/GO developer? Jump in and help us evolve this prototype into a stable module!

About

Native Go bindings for chDB, an in-process SQL OLAP Engine powered by ClickHouse

https://chdb.dev

License:Apache License 2.0


Languages

Language:Go 89.9%Language:C++ 10.1%