https://github.com/cursusdb/cursusdb-go
CursusDB Go Native Client Module
https://github.com/cursusdb/cursusdb-go
client dbms golang json module no-sql
Last synced: 29 days ago
JSON representation
CursusDB Go Native Client Module
- Host: GitHub
- URL: https://github.com/cursusdb/cursusdb-go
- Owner: cursusdb
- License: gpl-3.0
- Created: 2023-11-27T13:08:57.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T00:33:06.000Z (over 2 years ago)
- Last Synced: 2025-12-18T17:41:07.907Z (4 months ago)
- Topics: client, dbms, golang, json, module, no-sql
- Language: Go
- Homepage: https://cursusdb.com
- Size: 24.4 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
```
go get github.com/cursusdb/cursusdb-go
```
OR
```
go mod download github.com/cursusdb/cursusdb-go
```
## Usage
```
package main
import (
"fmt"
cursusdbgo "github.com/cursusdb/cursusdb-go"
)
func main() {
var client *cursusdbgo.Client
client = &cursusdbgo.Client{
TLS: false,
ClusterHost: "0.0.0.0",
ClusterPort: 7681,
Username: "someuser",
Password: "somepassword",
ClusterReadTimeout: time.Now().Add(time.Second * 10),
}
err := client.Connect()
if err != nil {
fmt.Println(err.Error())
return
}
defer client.Close()
res, err := client.Query(`ping;`)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(res)
}
```