Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 23, 2023. It is now read-only.
/ chdb-go-bak Public archive

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

License

Notifications You must be signed in to change notification settings

chdb-io/chdb-go-bak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

65 Commits

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 3

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /