Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 #84

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open

V3 #84

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d2bbc98
Adding json and Scan
vahid-sohrabloo Dec 28, 2022
38412b1
change version to v3 and split nulable for each types
vahid-sohrabloo Dec 29, 2022
32179cc
change append and add appendMulti
vahid-sohrabloo Jan 3, 2023
fc14993
change AppendBytesSlice to AppendBytesMulti
vahid-sohrabloo Jan 5, 2023
3dcec8a
use write buffer for slow connections
vahid-sohrabloo Jan 24, 2023
99d1e34
revert write method
vahid-sohrabloo Jan 27, 2023
a26a8cb
Add remove function to remove writed data
vahid-sohrabloo Feb 13, 2023
e0868ec
Don't reset buffers in Write (fixes #81) (#82)
bgranvea Jun 22, 2023
355cbb9
fix strict errors
vahid-sohrabloo Oct 1, 2023
44b7e31
Merge branch 'v3' of github.com:vahid-sohrabloo/chconn into v3
vahid-sohrabloo Oct 1, 2023
832663e
skip block on exec
vahid-sohrabloo Oct 2, 2023
8018d61
fix linter error
vahid-sohrabloo Oct 2, 2023
c896e4c
upgrade tcp version to 54465
vahid-sohrabloo Oct 10, 2023
bc542c5
Merge branch 'main' into v3
vahid-sohrabloo Oct 10, 2023
0cc2da6
update golang and clickhouse
vahid-sohrabloo Oct 10, 2023
5834b4b
update packages
vahid-sohrabloo Oct 10, 2023
28efcfa
fix progress on insert
vahid-sohrabloo Dec 17, 2023
34ba0d8
add rows, row and Nothing column
vahid-sohrabloo Dec 27, 2023
5414ce7
update config with pgx and change tls to compatible with clickhouse
vahid-sohrabloo Dec 30, 2023
cf7cde4
add more tests
vahid-sohrabloo Dec 30, 2023
26f793e
add more test
vahid-sohrabloo Jan 3, 2024
00a1c9d
add more tests
vahid-sohrabloo Jan 26, 2024
900782e
add format json
vahid-sohrabloo Feb 2, 2024
a11d41e
add vairant type
vahid-sohrabloo Feb 11, 2024
15f9ee3
add AppendAny to columns
miladibra10 Feb 14, 2024
012506a
return error when convesion is not loss less
miladibra10 Feb 16, 2024
5af249d
add Insert method to InsertStatement
miladibra10 Feb 23, 2024
22d8255
uncomment base test inserts
miladibra10 Feb 23, 2024
9270cc4
change invalid type error
vahid-sohrabloo Feb 25, 2024
db9b7ff
fix linter
vahid-sohrabloo Feb 25, 2024
0ae6377
fix reflect for golang 1.21
vahid-sohrabloo Feb 25, 2024
7996982
skip variant test for version before 24
vahid-sohrabloo Feb 25, 2024
e9c46f1
fix github ci file error
vahid-sohrabloo Feb 25, 2024
0d545ac
fix github ci file error
vahid-sohrabloo Feb 25, 2024
0d1d8e7
fix github ci error
vahid-sohrabloo Feb 25, 2024
270d73e
fix variant test error
vahid-sohrabloo Feb 25, 2024
a8e4b03
add codecov key
vahid-sohrabloo Feb 25, 2024
24cbf38
add codecov key
vahid-sohrabloo Feb 25, 2024
4bf343f
add codecov key
vahid-sohrabloo Feb 25, 2024
51f95b3
fix: fix lc append any value conversion issue
miladibra10 Feb 26, 2024
e334a36
merge master and remove unnecessary converts
vahid-sohrabloo Mar 7, 2024
4440df6
Merge branch 'miladibra10-v3' into v3
vahid-sohrabloo Mar 8, 2024
5db5beb
fix linter error
vahid-sohrabloo Mar 11, 2024
46e2b78
make scan simpler
vahid-sohrabloo Mar 27, 2024
a07702c
add canAppend to use it in vairant
vahid-sohrabloo Mar 27, 2024
40cefcb
fix variant for array
vahid-sohrabloo Apr 6, 2024
ac1f1b2
add more test for vairant
vahid-sohrabloo Apr 18, 2024
6b4ca2d
fix enum in json
vahid-sohrabloo Apr 18, 2024
4b59e29
merge master
vahid-sohrabloo Apr 19, 2024
df492cb
add more tests for vairant
vahid-sohrabloo Apr 19, 2024
99d9662
aplly last changes fro rows from pgx
vahid-sohrabloo Apr 20, 2024
5dc523d
support sparse serialze
vahid-sohrabloo May 6, 2024
2b710be
support sparse serialze
vahid-sohrabloo May 6, 2024
93fc425
fix issue on skip block
vahid-sohrabloo May 19, 2024
b6c56dd
handle events on exec
vahid-sohrabloo May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,46 +18,49 @@ jobs:
steps:
- uses: vahid-sohrabloo/clickhouse-action@v1
with:
version: '22.9'
version: '24.1'


- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.22

- name: Checkout code
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4.1.1

- name: Test
run: make test-cover
- name: Send coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}

test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
golang-version: [1.18.5, 1.19]
clickhouse-version: ['22.11', '22.10', '22.9', '22.8', '22.7', '22.6', '22.5', '22.4']
golang-version: [1.21, 1.22]
clickhouse-version: ['24.1', '23.10', '23.9', '23.8', '23.7']
env:
VERBOSE: 1
GOFLAGS: -mod=readonly
CLICKHOUSE_VERSION: ${{ matrix.clickhouse-version }}

steps:
- uses: vahid-sohrabloo/clickhouse-action@v1
with:
version: '${{ matrix.clickhouse-version }}'

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.18.5
go-version: 1.22

- name: Checkout code
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

- name: Test
run: make test
run: make test
10 changes: 5 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21
- name: Checkout code
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
args: --timeout=10m
version: v1.56
args: --timeout=10m
14 changes: 10 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ linters-settings:
statements: 60
goconst:
min-len: 5
min-occurrences: 3
min-occurrences: 5
gocritic:
enabled-tags:
- diagnostic
Expand Down Expand Up @@ -49,9 +49,9 @@ linters:
disable-all: true
enable:
# - bodyclose
- depguard
# - depguard
- dogsled
- dupl
# - dupl
- errcheck
- exportloopref
- funlen
Expand All @@ -68,7 +68,7 @@ linters:
- ineffassign
- lll
- misspell
- nakedret
# - nakedret
# - noctx
- nolintlint
- staticcheck
Expand Down Expand Up @@ -115,6 +115,12 @@ issues:
- goconst
- funlen
- gocyclo
- path: cmd/chtuplegen
linters:
- goconst
- funlen
- gocyclo
- lll
- path: _unsafe\.go
linters:
- dupl
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ endif
# Project variables

# Dependency versions
GOTESTSUM_VERSION = 1.8.1
GOLANGCI_VERSION = 1.50.0
GOTESTSUM_VERSION = 1.8.2
GOLANGCI_VERSION = 1.56.1

GOLANG_VERSION = 1.14

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/vahid-sohrabloo/chconn/v2.svg)](https://pkg.go.dev/github.com/vahid-sohrabloo/chconn/v2)
[![Go Reference](https://pkg.go.dev/badge/github.com/vahid-sohrabloo/chconn/v3.svg)](https://pkg.go.dev/github.com/vahid-sohrabloo/chconn/v3)
[![codecov](https://codecov.io/gh/vahid-sohrabloo/chconn/branch/master/graph/badge.svg?token=K3JN6XWFVV)](https://codecov.io/gh/vahid-sohrabloo/chconn)
[![Go Report Card](https://goreportcard.com/badge/github.com/vahid-sohrabloo/chconn/v2)](https://goreportcard.com/report/github.com/vahid-sohrabloo/chconn/v2)
[![Go Report Card](https://goreportcard.com/badge/github.com/vahid-sohrabloo/chconn/v3)](https://goreportcard.com/report/github.com/vahid-sohrabloo/chconn/v3)
[![Actions Status](https://github.com/vahid-sohrabloo/chconn/workflows/CI/badge.svg)](https://github.com/vahid-sohrabloo/chconn/actions)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvahid-sohrabloo%2Fchconn.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvahid-sohrabloo%2Fchconn?ref=badge_shield)

Expand All @@ -23,8 +23,8 @@ import (
"os"
"time"

"github.com/vahid-sohrabloo/chconn/v2/chpool"
"github.com/vahid-sohrabloo/chconn/v2/column"
"github.com/vahid-sohrabloo/chconn/v3/chpool"
"github.com/vahid-sohrabloo/chconn/v3/column"
)

func main() {
Expand Down
Loading
Loading