File tree Expand file tree Collapse file tree 6 files changed +19
-11
lines changed Expand file tree Collapse file tree 6 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 25
25
- name : Test
26
26
run : make test
27
27
- name : Test main
28
- run : LD_LIBRARY_PATH=./ ./chdb-go "SELECT 12345"
28
+ run : ./chdb-go "SELECT 12345"
29
29
30
30
build_mac :
31
31
runs-on : macos-12
Original file line number Diff line number Diff line change 21
21
go mod tidy
22
22
make build
23
23
- name : Test
24
- run : LD_LIBRARY_PATH=. ./chdb-go "SELECT 12345"
24
+ run : ./chdb-go "SELECT 12345"
25
25
- name : Get Version
26
26
run : |
27
27
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ update_libchdb:
4
4
./update_libchdb.sh
5
5
6
6
install :
7
- curl -sL https://lib.chdb.io | sudo bash
7
+ curl -sL https://lib.chdb.io | bash
8
8
9
9
test :
10
10
CGO_ENABLED=1 go test -v -coverprofile=coverage.out ./...
13
13
CGO_ENABLED=1 go run main.go
14
14
15
15
build :
16
- CGO_ENABLED=1 go build -o chdb-go main.go
16
+ CGO_ENABLED=1 go build -ldflags ' -extldflags "-Wl,-rpath,/usr/local/lib" ' - o chdb-go main.go
Original file line number Diff line number Diff line change 9
9
10
10
## Install
11
11
12
- 1 . Download and install [ ` libchdb ` ] ( https://github.com/chdb-io/chdb/releases )
13
- - run ` make update_libchdb ` to download and extract libchdb.so. or
14
- - run ` make install ` to install libchdb.so
15
- 2 . Build ` chdb-go `
12
+ ### Install libchdb.so
13
+ 1 . Install [ ` libchdb ` ] ( https://github.com/chdb-io/chdb/releases )
14
+ - curl -sL https://lib.chdb.io | bash
15
+
16
+ ### Install chdb-go
17
+ 1 . Install ` chdb-go `
18
+ - ` go install github.com/chdb-io/chdb-go@latest `
19
+ 2 . Run ` chdb-go ` with or without persistent ` --path `
20
+ - run ` $GOPATH/bin/chdb-go `
21
+
22
+ ### or Build from source
23
+ 1 . Build ` chdb-go `
16
24
- run ` make build `
17
- 3 . Run ` chdb-go ` with or without persistent ` --path `
25
+ 2 . Run ` chdb-go ` with or without persistent ` --path `
18
26
- run ` ./chdb-go `
19
27
20
28
## chdb-go CLI
Original file line number Diff line number Diff line change 1
1
package chdbstable
2
2
3
3
/*
4
- #cgo LDFLAGS: -L. -lchdb
4
+ #cgo LDFLAGS: -L/usr/local/lib -lchdb
5
5
#include <stdlib.h> // Include the C standard library for C.free
6
6
#include "chdb.h"
7
7
*/
Original file line number Diff line number Diff line change 1
1
module github.com/chdb-io/chdb-go
2
2
3
- go 1.21.5
3
+ go 1.21
4
4
5
5
require (
6
6
github.com/apache/arrow/go/v14 v14.0.2
You can’t perform that action at this time.
0 commit comments