Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions go/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ linters:
- ^gorm.io/gorm.*$
- ^github.com/redis/go-redis/v9.Options$
- ^github.com/go-redis/redis/v8.Options$
- ^github.com/unkeyed/unkey/go/pkg/cli.Command$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*BinaryOperation$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*NestedIdentifier$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*Ident$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*StringLiteral$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*WhereClause$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*NumberLiteral$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*LimitClause$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*ParamExprList$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*ColumnExprList$
- ^github.com/AfterShip/clickhouse-sql-parser/parser.*ColumnExpr$
- ^database/sql\.Null.*$
funlen:
lines: 100
statements: 50
Expand Down
1 change: 1 addition & 0 deletions go/apps/api/integration/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func (h *Harness) RunAPI(config ApiConfig) *ApiCluster {
DatabasePrimary: mysqlHostCfg.FormatDSN(),
DatabaseReadonlyReplica: "",
ClickhouseURL: clickhouseHostDSN,
ClickhouseAnalyticsURL: "",
RedisUrl: redisHostAddr,
Region: "test",
InstanceID: fmt.Sprintf("test-node-%d", i),
Expand Down
5 changes: 3 additions & 2 deletions go/cmd/create-clickhouse-user/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ func run(ctx context.Context, cmd *cli.Command) error {

// Connect to MySQL
database, err := db.New(db.Config{
PrimaryDSN: cmd.RequireString("database-primary"),
Logger: logger,
PrimaryDSN: cmd.RequireString("database-primary"),
ReadOnlyDSN: "",
Logger: logger,
})
if err != nil {
return fmt.Errorf("failed to connect to database: %w", err)
Expand Down
15 changes: 11 additions & 4 deletions go/cmd/dev/seed/verifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ func seedVerifications(ctx context.Context, cmd *cli.Command) error {

// Connect to MySQL
database, err := db.New(db.Config{
PrimaryDSN: cmd.RequireString("database-primary"),
Logger: logger,
PrimaryDSN: cmd.RequireString("database-primary"),
ReadOnlyDSN: "",
Logger: logger,
})
if err != nil {
return fmt.Errorf("failed to connect to MySQL: %w", err)
Expand All @@ -62,8 +63,14 @@ func seedVerifications(ctx context.Context, cmd *cli.Command) error {

// Create key service for proper key generation
keyService, err := keys.New(keys.Config{
DB: database,
Logger: logger,
Logger: logger,
DB: database,
RateLimiter: nil,
RBAC: nil,
Clickhouse: ch,
Region: "test",
UsageLimiter: nil,
KeyCache: nil,
})
if err != nil {
return fmt.Errorf("failed to create key service: %w", err)
Expand Down
1 change: 1 addition & 0 deletions go/pkg/clickhouse/query-parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
// NewParser creates a new parser
func NewParser(config Config) *Parser {
return &Parser{
stmt: nil,
config: config,
cteNames: make(map[string]bool),
}
Expand Down
Loading