Skip to content

Commit

Permalink
feat(db): support custom properties metadata (#108)
Browse files Browse the repository at this point in the history
* feat: add events table

* refactor: prepared statements are called from a map

* refactor: lazy load prepared statements

* fix(db): do not use reserved keyword group

* test: add event test db call

* fix: restrict custom prop types to string number bool

* perf: commit multiple properties in a single transaction

* lint: remove cyclop

* fix: add batch id for each unique event for better grouping

* style: remove newline
  • Loading branch information
ayuhito authored Jul 31, 2024
1 parent c928d78 commit 107249f
Show file tree
Hide file tree
Showing 16 changed files with 760 additions and 63 deletions.
9 changes: 2 additions & 7 deletions core/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ run:
# This file contains only configs which differ from defaults.
# All possible options can be found here https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
linters-settings:
cyclop:
# The maximal code complexity to report.
# Default: 10
max-complexity: 40

errcheck:
# Report about not checking of errors in type assertions: `a := b.(MyStruct)`.
# Such cases aren't reported by default.
Expand Down Expand Up @@ -117,7 +112,7 @@ linters:
- bodyclose # checks whether HTTP response body is closed successfully
- containedctx # checks for context.Context contained in a struct
- contextcheck # checks for common mistakes using context
- cyclop # checks function and package cyclomatic complexity
# - cyclop # checks function and package cyclomatic complexity
# - dupl # tool for code clone detection
- durationcheck # checks for two durations multiplied together
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
Expand All @@ -133,7 +128,7 @@ linters:
# - gocognit # computes and checks the cognitive complexity of functions
- goconst # finds repeated strings that could be replaced by a constant
- gocritic # provides diagnostics that check for bugs, performance and style issues
- gocyclo # computes and checks the cyclomatic complexity of functions
# - gocyclo # computes and checks the cyclomatic complexity of functions
- gofumpt # checks if the code is formatted with gofumpt
- godot # checks if comments end in a period
- goimports # in addition to fixing imports, goimports also formats your code in the same style as gofmt
Expand Down
266 changes: 266 additions & 0 deletions core/api/oas_json_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 107249f

Please sign in to comment.