https://github.com/epicstep/clickhouse-go-rows-utils
Library that simplify working with rows in clickhouse-go
https://github.com/epicstep/clickhouse-go-rows-utils
Last synced: about 1 year ago
JSON representation
Library that simplify working with rows in clickhouse-go
- Host: GitHub
- URL: https://github.com/epicstep/clickhouse-go-rows-utils
- Owner: EpicStep
- License: mit
- Created: 2024-09-27T15:57:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T07:29:19.000Z (over 1 year ago)
- Last Synced: 2025-03-30T00:31:43.188Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clickhouse-go-rows-utils [](https://pkg.go.dev/github.com/EpicStep/clickhouse-go-rows-utils) [](https://github.com/EpicStep/clickhouse-go-rows-utils/actions/workflows/lint.yml) [](https://github.com/EpicStep/clickhouse-go-rows-utils/actions/workflows/test.yml)
Library that simplify working with rows in [clickhouse-go](https://github.com/ClickHouse/clickhouse-go).
## Install
```shell
go get github.com/EpicStep/clickhouse-go-rows-utils
```
## Documentation
Documentation for all functions available at [pkg.go.dev](https://pkg.go.dev/github.com/EpicStep/clickhouse-go-rows-utils)
## Usage example
```go
package main
import (
"context"
rowsutils "github.com/EpicStep/clickhouse-go-rows-utils"
)
func main() {
// connect to database.
rows, err := db.Query(context.Background(), "SELECT 1")
if err != nil {
panic(err)
}
err = rowsutils.ForEachRow(rows, func(row rowsutils.CollectableRow) error {
// scan your rows or do other work.
return nil
})
if err != nil {
panic(err)
}
}
```