-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify the export by using reflection and dynamic parquet schema ge…
…neration Signed-off-by: Bruno Calza <[email protected]>
- Loading branch information
1 parent
e5ba4ff
commit 8f862a7
Showing
16 changed files
with
482 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
*.db* | ||
schemas.go | ||
schemas.so | ||
sqlite-exporter | ||
output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
linters-settings: | ||
revive: | ||
ignore-generated-header: false | ||
severity: warning | ||
confidence: 0.8 | ||
errorCode: 0 | ||
warningCode: 0 | ||
rules: | ||
- name: blank-imports | ||
- name: context-as-argument | ||
- name: context-keys-type | ||
- name: dot-imports | ||
- name: error-return | ||
- name: error-strings | ||
- name: error-naming | ||
- name: exported | ||
- name: if-return | ||
- name: increment-decrement | ||
- name: var-naming | ||
- name: var-declaration | ||
- name: package-comments | ||
disabled: true | ||
- name: range | ||
- name: receiver-naming | ||
- name: time-naming | ||
- name: unexported-return | ||
- name: indent-error-flow | ||
- name: errorf | ||
- name: empty-block | ||
- name: superfluous-else | ||
- name: unused-parameter | ||
- name: unreachable-code | ||
- name: redefines-builtin-id | ||
misspell: | ||
locale: US | ||
|
||
linters: | ||
enable: | ||
- revive | ||
- misspell | ||
- bodyclose | ||
- unconvert | ||
- goconst | ||
- goimports | ||
- unparam | ||
- whitespace | ||
- godot | ||
- lll | ||
- sqlclosecheck | ||
- gofumpt | ||
|
||
issues: | ||
exclude-use-default: false | ||
|
||
exclude: | ||
- stutters | ||
|
||
run: | ||
timeout: 30m | ||
|
||
skip-dirs: | ||
- "pkg/database/db" | ||
- "internal/router/controllers/apiv1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Lint | ||
lint: | ||
go run github.com/golangci/golangci-lint/cmd/[email protected] run | ||
.PHONY: lint | ||
|
||
# Test | ||
test: | ||
go test ./... -short -race -timeout 1m | ||
.PHONY: test | ||
|
||
# Build | ||
build: | ||
go build -o sqlite-exporter . | ||
.PHONY: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.