Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Apr 26, 2024
1 parent 187d003 commit 10557f4
Show file tree
Hide file tree
Showing 5 changed files with 752 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
dbversion: ['clickhouse/clickhouse-server']
go: ['1.19', '1.20']
go: ['1.21', '1.22']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,27 @@ func main() {
package main

import (
std_ck "github.com/ClickHouse/clickhouse-go/v2"
"gorm.io/driver/clickhouse"
"gorm.io/gorm"
)

sqlDB, err := clickhouse.OpenDB(&clickhouse.Options{
sqlDB, err := std_ck.OpenDB(&std_ck.Options{
Addr: []string{"127.0.0.1:9999"},
Auth: clickhouse.Auth{
Auth: std_ck.Auth{
Database: "default",
Username: "default",
Password: "",
},
TLS: &tls.Config{
InsecureSkipVerify: true,
},
Settings: clickhouse.Settings{
Settings: std_ck.Settings{
"max_execution_time": 60,
},
DialTimeout: 5 * time.Second,
Compression: &clickhouse.Compression{
clickhouse.CompressionLZ4,
Compression: &std_ck.Compression{
std_ck.CompressionLZ4,
},
Debug: true,
})
Expand Down
Loading

0 comments on commit 10557f4

Please sign in to comment.