-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #949 from go-kivik/gomodv2
Take 2 at a separate Go mod for x/sqlite
- Loading branch information
Showing
44 changed files
with
541 additions
and
123 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
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 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,23 @@ | ||
[run] | ||
timeout = "15s" | ||
allow-parallel-runners = true | ||
|
||
[output] | ||
format = "colored-line-number" | ||
|
||
[linters] | ||
disable-all = true | ||
enable = [ | ||
# Styling/formatting | ||
"gci", # Handles import groups/ordering | ||
"gofmt", | ||
] | ||
|
||
[issues] | ||
fix = true | ||
exclude-use-default = false | ||
|
||
[linters-settings.gci] | ||
sections = ["standard", "default", "prefix(github.com/go-kivik/kivik/)"] | ||
skip-generated = false | ||
custom-order = true |
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,61 @@ | ||
[run] | ||
timeout = "300s" | ||
|
||
[[output.formats]] | ||
format = "colored-line-number" | ||
|
||
[linters] | ||
enable = [ | ||
"gci", | ||
"unconvert", | ||
"goimports", | ||
"unused", | ||
"vetshadow", | ||
"misspell", | ||
"nakedret", | ||
"errcheck", | ||
"revive", | ||
"ineffassign", | ||
"vet", | ||
"unparam", | ||
"gofumpt", | ||
"prealloc", | ||
"gocritic", | ||
"staticcheck", | ||
"goheader", | ||
|
||
# SQL-related linters | ||
"rowserrcheck", | ||
"sqlclosecheck", | ||
] | ||
|
||
[issues] | ||
exclude-use-default = false | ||
|
||
[[issues.exclude-rules]] | ||
source = "defer .*\\.(Close|Rollback)\\(\\)$" | ||
linters = ["errcheck"] | ||
|
||
[linters-settings.gci] | ||
sections = ["standard", "default", "prefix(github.com/go-kivik/kivik)"] | ||
skip-generated = false | ||
custom-order = true | ||
|
||
[linters-settings.goheader] | ||
template = """ | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
use this file except in compliance with the License. You may obtain a copy of | ||
the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
License for the specific language governing permissions and limitations under | ||
the License.""" | ||
|
||
# Prepared statements on transactions are closed by the transaction. | ||
[[issues.exclude-rules]] | ||
source = "tx.Prepare|stmts.prepare" | ||
linters = ["sqlclosecheck"] |
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,9 @@ | ||
{ | ||
"recommendations": [ | ||
"emeraldwalk.runonsave", | ||
"tamasfe.even-better-toml", | ||
"github.vscode-github-actions", | ||
"codezombiech.gitignore", | ||
"golang.go" | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"go.lintTool": "golangci-lint", | ||
"emeraldwalk.runonsave": { | ||
"commands": [ | ||
{ | ||
"match": "\\.go$", | ||
"cmd": "golangci-lint run -c ${workspaceFolder}/.golangci-safe.toml ${fileDirname} --fix" | ||
} | ||
] | ||
} | ||
} |
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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module github.com/go-kivik/kivik/x/sqlite/v4 | ||
|
||
go 1.22.0 | ||
|
||
require ( | ||
github.com/cenkalti/backoff/v4 v4.3.0 | ||
github.com/dop251/goja v0.0.0-20240220182346-e401ed450204 | ||
github.com/go-kivik/kivik/v4 v4.2.1 | ||
github.com/google/go-cmp v0.6.0 | ||
gitlab.com/flimzy/testy v0.14.0 | ||
modernc.org/sqlite v1.29.8 | ||
) | ||
|
||
require ( | ||
github.com/Masterminds/semver/v3 v3.1.1 // indirect | ||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
github.com/dlclark/regexp2 v1.7.0 // indirect | ||
github.com/dustin/go-humanize v1.0.1 // indirect | ||
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect | ||
github.com/google/pprof v0.0.0-20240409012703-83162a5b38cd // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/ncruces/go-strftime v0.1.9 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect | ||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect | ||
golang.org/x/sync v0.4.0 // indirect | ||
golang.org/x/sys v0.19.0 // indirect | ||
golang.org/x/text v0.13.0 // indirect | ||
modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect | ||
modernc.org/libc v1.49.3 // indirect | ||
modernc.org/mathutil v1.6.0 // indirect | ||
modernc.org/memory v1.8.0 // indirect | ||
modernc.org/strutil v1.2.0 // indirect | ||
modernc.org/token v1.1.0 // indirect | ||
) |
Oops, something went wrong.