Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge 2309 #1957

Merged
merged 339 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
339 commits
Select commit Hold shift + click to select a range
091be2c
fix:spell
taolx0 Sep 7, 2023
c54e165
Merge pull request #1793 from actiontech/feishu-5
ColdWaterLW Sep 7, 2023
439dcd3
chore:forbid dingtalk approval
taolx0 Sep 7, 2023
b1c63ff
Merge pull request #1796 from actiontech/feat/dingtalk-execution
ColdWaterLW Sep 7, 2023
8a01721
fix spelling
ColdWaterLW Sep 7, 2023
97b3712
Merge pull request #1797 from actiontech/fix-spelling
taolx0 Sep 7, 2023
c98e762
support slow log filter
sjjian Sep 7, 2023
106579d
support slow log filter
sjjian Sep 7, 2023
2148e34
fix:git commit error
taolx0 Sep 8, 2023
4994f85
Merge pull request #1799 from actiontech/fix-git
ColdWaterLW Sep 8, 2023
cc2e273
Merge pull request #1798 from actiontech/slowlog-filter
ColdWaterLW Sep 8, 2023
5f9c2fc
fix spelling
ColdWaterLW Sep 8, 2023
21eb365
Merge pull request #1800 from actiontech/fix-ee-933
taolx0 Sep 8, 2023
e690c95
api definitions
ColdWaterLW Sep 8, 2023
1e6fac3
compatible with dml sql that does not use where
hasa1K Sep 8, 2023
3daab8b
hot-fix: cannot using hash algo in generate token
winfredLIN Sep 8, 2023
931cd3c
return creator to front-end
ColdWaterLW Sep 8, 2023
279f59b
change unit test
hasa1K Sep 11, 2023
5b2a774
Merge pull request #1804 from winfredLIN/hot-fix-scanner-token-gen
ColdWaterLW Sep 11, 2023
1b8fe58
Merge pull request #1803 from actiontech/fix-issue1743-7
taolx0 Sep 11, 2023
6a909b0
avoid text field
hasa1K Sep 11, 2023
1488803
update sqle community info
KID-G Sep 11, 2023
0255d36
fix descriptions
ColdWaterLW Sep 11, 2023
8c89f71
add instance name
ColdWaterLW Sep 11, 2023
a86ff4e
Merge pull request #1802 from actiontech/issue-ee-918
sjjian Sep 11, 2023
f3d3fe3
check union index
hasa1K Sep 11, 2023
8f45e3c
fix parameter of api definitions
ColdWaterLW Sep 11, 2023
0747844
Merge pull request #1808 from actiontech/issue-ee-918
sjjian Sep 11, 2023
51776e5
chore:sql manage list api define
taolx0 Sep 12, 2023
2d7b94a
add api for detail info
ColdWaterLW Sep 12, 2023
b1c11d6
Merge pull request #1810 from actiontech/issue-ee-918
sjjian Sep 12, 2023
21da492
chore:rename
taolx0 Sep 12, 2023
494c3e8
Merge pull request #1809 from actiontech/api-ee-943
ColdWaterLW Sep 12, 2023
90dd6c6
rename api field
ColdWaterLW Sep 12, 2023
ae28d72
Merge pull request #1812 from actiontech/issue-ee-918
sjjian Sep 12, 2023
67a9738
fix api
ColdWaterLW Sep 12, 2023
7c2c378
add function for reusing
ColdWaterLW Sep 12, 2023
d76bf62
implement create sql audit
ColdWaterLW Sep 12, 2023
05d0777
store project id for audit records
ColdWaterLW Sep 12, 2023
1eadbbf
1. correct logs; 2. don not write useless ";"
ColdWaterLW Sep 12, 2023
1eb8392
fix lint
ColdWaterLW Sep 12, 2023
509d1bb
chore:sql manage api define update
taolx0 Sep 12, 2023
dd40f92
Merge pull request #1813 from actiontech/issue-1811
sjjian Sep 12, 2023
2147713
check table rows count
hasa1K Sep 12, 2023
b7c7acf
add unit test
hasa1K Sep 12, 2023
c4f70f3
change unit test
hasa1K Sep 12, 2023
84336d0
chore:optimize api define
taolx0 Sep 12, 2023
faa49cc
chore:optimize api define
taolx0 Sep 12, 2023
52c4c4e
Merge pull request #1814 from actiontech/api-ee-943-1
sjjian Sep 12, 2023
392fb33
compatible with scheduled tasks
hasa1K Sep 12, 2023
c9df6a8
change unit test
hasa1K Sep 12, 2023
2ef7b20
change unit test
hasa1K Sep 12, 2023
cc72aba
adjust api
ColdWaterLW Sep 12, 2023
75bc903
implement get audit record list
ColdWaterLW Sep 12, 2023
1fc038d
implement update tags of sql audit record
ColdWaterLW Sep 12, 2023
96acdbd
fix:add @Id
taolx0 Sep 13, 2023
cae4602
fix:ci spell
taolx0 Sep 13, 2023
fc6ea36
optimize name and error type
ColdWaterLW Sep 13, 2023
cd5cb91
return error with error code
ColdWaterLW Sep 13, 2023
b3b1bf1
Merge pull request #1818 from actiontech/issue-1811
sjjian Sep 13, 2023
5725b84
support tags
ColdWaterLW Sep 13, 2023
ec07d17
adjust api
ColdWaterLW Sep 13, 2023
c30d463
implement get sql audit record detail
ColdWaterLW Sep 13, 2023
17c5e7b
Merge pull request #1819 from actiontech/fix-api-1
hasa1K Sep 13, 2023
3f2b934
implement tag tips
ColdWaterLW Sep 13, 2023
09a81fb
skip generate rollback sqls when source is zip file
ColdWaterLW Sep 13, 2023
28022fc
do not delete tasks if they are still related to audit record
ColdWaterLW Sep 13, 2023
fe23450
use GetTableRowCount && change init task
hasa1K Sep 13, 2023
fa37866
fix: small probability of causing panic
winfredLIN Sep 13, 2023
ef580d7
fix syntax
ColdWaterLW Sep 13, 2023
d7dc545
Merge pull request #1821 from winfredLIN/fix-issue1756-append2
taolx0 Sep 13, 2023
1bd4bf3
the sql audit record id should be got from path
ColdWaterLW Sep 13, 2023
7962075
correct filter audit status
ColdWaterLW Sep 13, 2023
f05251e
judge schema && table exist
hasa1K Sep 13, 2023
6611eaa
fix total number
ColdWaterLW Sep 13, 2023
10a609a
change unit test
hasa1K Sep 13, 2023
806b812
remove duplicate code
hasa1K Sep 13, 2023
e9e7aef
change tag limitation
ColdWaterLW Sep 13, 2023
2dee317
Merge pull request #1820 from actiontech/issue-1811
sjjian Sep 13, 2023
c888817
Merge pull request #1815 from actiontech/fix-issue1783-3
sjjian Sep 13, 2023
89dfca8
tags is required not nil by "dive" validation
ColdWaterLW Sep 13, 2023
32c67bc
use GetTableRowCount and GetColumnCardinality instead GetIndexSelecti…
hasa1K Sep 13, 2023
af3c503
chore:optimize api return
taolx0 Sep 13, 2023
0cbe0ba
update unit test
hasa1K Sep 13, 2023
526d864
Merge pull request #1823 from actiontech/fix-api-2
sjjian Sep 13, 2023
31dbca3
Merge branch 'main' of github.com:actiontech/sqle into fix-issue1783-2
hasa1K Sep 13, 2023
74214a7
change error code
hasa1K Sep 13, 2023
7815f22
Merge pull request #1822 from actiontech/issue-1811
sjjian Sep 13, 2023
0f12d39
fix spelling
ColdWaterLW Sep 13, 2023
391cf0f
Merge pull request #1824 from actiontech/fix-spelling
sjjian Sep 13, 2023
f8a93e9
add CreateTableStmt && change message
hasa1K Sep 13, 2023
f38817d
update unit test
hasa1K Sep 13, 2023
371e1e8
Merge pull request #1817 from actiontech/fix-issue1783-2
sjjian Sep 14, 2023
894e334
Merge branch 'main' of github.com:actiontech/sqle into fix-issue1783-1
hasa1K Sep 14, 2023
5630c57
chore:add schema name field
taolx0 Sep 14, 2023
2e95882
Merge pull request #1825 from actiontech/fix-api-3
sjjian Sep 14, 2023
793aa4d
add only pk solution
hasa1K Sep 14, 2023
7f0aecd
update unit test
hasa1K Sep 14, 2023
1966d86
add blob unit test
hasa1K Sep 14, 2023
8179d3e
Merge pull request #1816 from actiontech/fix-issue1783-1
sjjian Sep 14, 2023
bed0b20
fix log, field don't add message
sjjian Sep 14, 2023
cfa74f7
Merge pull request #1826 from actiontech/fix-log-desc
ColdWaterLW Sep 14, 2023
b1ea1f7
api definition
ColdWaterLW Sep 14, 2023
3cd0fa3
add check select rows
hasa1K Sep 14, 2023
6c9f310
update unit test
hasa1K Sep 14, 2023
badf685
remove unused func
hasa1K Sep 14, 2023
68ffe31
check scan rows
hasa1K Sep 14, 2023
eac4747
use type instead of key
hasa1K Sep 14, 2023
065ba7c
change desc
hasa1K Sep 14, 2023
08f91b6
split code to new func
hasa1K Sep 14, 2023
df2a45b
update unit test
hasa1K Sep 14, 2023
8923d18
fist run explain
hasa1K Sep 14, 2023
20d649c
update unit test
hasa1K Sep 14, 2023
50732fd
Merge pull request #1828 from actiontech/fix-issue1783-5
sjjian Sep 14, 2023
9987bd1
Merge branch 'main' of github.com:actiontech/sqle into fix-issue1783-6
hasa1K Sep 14, 2023
276d27f
split code from checkExplain
hasa1K Sep 14, 2023
8a9d9b2
add unit test
hasa1K Sep 14, 2023
e7d76ac
fix #1830
sjjian Sep 14, 2023
2173ebe
fix #1832
sjjian Sep 15, 2023
a296300
Merge pull request #1834 from actiontech/fix-1832-2
ColdWaterLW Sep 15, 2023
026c709
Merge pull request #1831 from actiontech/fix-1830
ColdWaterLW Sep 15, 2023
8ba5430
Merge pull request #1829 from actiontech/fix-issue1783-6
sjjian Sep 15, 2023
64ca8c2
rename fields
ColdWaterLW Sep 15, 2023
014f135
feats: new info collection for slow log statistics
winfredLIN Sep 15, 2023
c7da8d4
Merge pull request #1835 from actiontech/issue-ee-958
sjjian Sep 15, 2023
6f61d6e
feats: compatible with older versions of scannerd
winfredLIN Sep 15, 2023
05f60e5
test: update unit test for GetAuditPlanSQLsByReq
winfredLIN Sep 15, 2023
9d4c4ca
Merge pull request #1836 from winfredLIN/issue928
sjjian Sep 15, 2023
44a5cb3
change field name
ColdWaterLW Sep 15, 2023
ebfe64d
check join field is using index
hasa1K Sep 15, 2023
42ee9ed
add unit test
hasa1K Sep 15, 2023
03667a1
change annotation
hasa1K Sep 15, 2023
43df8c1
Merge pull request #1837 from actiontech/issue-ee-958
sjjian Sep 15, 2023
06869d4
feat:forbid math computation or func on index
taolx0 Sep 15, 2023
fc3ff03
unit test
taolx0 Sep 15, 2023
10c338a
chore:change rule category
taolx0 Sep 15, 2023
7ae558e
check join field charset and collation
hasa1K Sep 15, 2023
b5113ab
update unit test
hasa1K Sep 15, 2023
4469060
fix misspell
hasa1K Sep 15, 2023
d374245
Merge pull request #1839 from actiontech/feat-index-rule
ColdWaterLW Sep 15, 2023
22238b4
Merge branch 'main' of github.com:actiontech/sqle into fix-issue1783-6
hasa1K Sep 15, 2023
156a73d
update code
hasa1K Sep 15, 2023
4b3d581
Merge pull request #1840 from actiontech/fix-issue1783-6
taolx0 Sep 15, 2023
ae824fd
docs: update api documents
winfredLIN Sep 15, 2023
36822c7
Merge pull request #1841 from winfredLIN/issue928
taolx0 Sep 18, 2023
5b196e1
chore:support front ui link
taolx0 Sep 18, 2023
5bbed92
Merge pull request #1842 from actiontech/sql-manage-1
sjjian Sep 18, 2023
f94f235
chore:add project name query
taolx0 Sep 18, 2023
b9e932b
Merge pull request #1843 from actiontech/sql-manage-2
sjjian Sep 18, 2023
2e12c3d
Merge pull request #1807 from actiontech/update-community-info
ColdWaterLW Sep 19, 2023
3a4fb9a
add rules
ColdWaterLW Sep 19, 2023
38c98b0
add unit test
ColdWaterLW Sep 19, 2023
22d39e7
change rule name and level
ColdWaterLW Sep 19, 2023
cb49236
fix lint
ColdWaterLW Sep 19, 2023
fc16cd4
do not block when error occur
ColdWaterLW Sep 19, 2023
fcc60b5
fix unit test
ColdWaterLW Sep 19, 2023
f909dea
Merge pull request #1845 from actiontech/issue-1783
sjjian Sep 19, 2023
7950110
chore:sql manage batch update api
taolx0 Sep 19, 2023
695a130
Merge pull request #1846 from actiontech/api-sql-manage
sjjian Sep 19, 2023
633354c
docs: modify the SQL audit http interface
winfredLIN Sep 20, 2023
ce27966
chore:add remark field
taolx0 Sep 20, 2023
32ab6b5
Merge pull request #1847 from actiontech/api-5
sjjian Sep 20, 2023
521bc38
Merge pull request #1848 from winfredLIN/issue959
ColdWaterLW Sep 20, 2023
9b1e228
add parameter to specify rule
ColdWaterLW Sep 20, 2023
44e45dc
add definition to ce
ColdWaterLW Sep 20, 2023
ddf26eb
Merge pull request #1850 from actiontech/issue-ee-958
sjjian Sep 21, 2023
6e4d99b
feat:community edition impl
taolx0 Sep 20, 2023
1006592
refactor:add sql-fingerprint return
taolx0 Sep 20, 2023
8f79d80
refactor:extract model logic
taolx0 Sep 20, 2023
e5f4949
feat:support auditPlan and sql audit sync
taolx0 Sep 20, 2023
39b6051
chore:sql manage model
taolx0 Sep 20, 2023
3c943a8
chore:review fix
taolx0 Sep 21, 2023
71e0ea8
Merge pull request #1844 from actiontech/sql-manage-3
sjjian Sep 21, 2023
a26f6e1
correct api definition
ColdWaterLW Sep 21, 2023
e5bf1ac
Merge pull request #1851 from actiontech/issue-ee-958
sjjian Sep 21, 2023
f4e6e91
feat: support audit sqls from git repository
winfredLIN Sep 21, 2023
212a93e
test: unitest for check git http url func
winfredLIN Sep 21, 2023
7d68ea4
chore: upgrade go version from 1.16 to 1.19.6
winfredLIN Sep 21, 2023
65a2ced
chore: upgrade go version from 1.16 to 1.19.6
winfredLIN Sep 21, 2023
9546505
perf: reduce unnecessary file reads
winfredLIN Sep 21, 2023
b62ac6a
refactor: optimize the judgment logic
winfredLIN Sep 21, 2023
e755e50
content field may store long string
ColdWaterLW Sep 21, 2023
d816db4
support longer
ColdWaterLW Sep 21, 2023
0066f22
Merge pull request #1853 from actiontech/issue-ee-958
sjjian Sep 21, 2023
132600c
fix: ci failed
winfredLIN Sep 21, 2023
e99bf79
ci: upgrade golang version of ci
winfredLIN Sep 21, 2023
790dd55
ci: upgrade golang version of github action
winfredLIN Sep 21, 2023
9cdf406
chore:ce sql manage
taolx0 Sep 21, 2023
e6bff5b
ci: down grade of golang-ci-lint
winfredLIN Sep 21, 2023
d7f0c79
Merge pull request #1855 from actiontech/sql-manage-6
sjjian Sep 21, 2023
92e9729
ci: disable forcetypeassert rule of ci-lint
winfredLIN Sep 21, 2023
d9181b2
Merge pull request #1854 from winfredLIN/feat-issue959
sjjian Sep 21, 2023
d633443
fix:add check
taolx0 Sep 21, 2023
aa4f4d6
Merge pull request #1856 from actiontech/sql-manage-6
sjjian Sep 21, 2023
4b7f8b9
fix:not show all assignees
taolx0 Sep 21, 2023
17bbb20
Merge pull request #1857 from actiontech/sql-manage-7
sjjian Sep 21, 2023
14b95d6
fix compile error
ColdWaterLW Sep 21, 2023
89f55a7
Merge pull request #1858 from actiontech/issue-ee-959
sjjian Sep 21, 2023
40d8133
chore:support upload sql sync
taolx0 Sep 21, 2023
c379394
Merge pull request #1859 from actiontech/sql-manage-10
ColdWaterLW Sep 21, 2023
0f4bf3c
chore:add person audited status
taolx0 Sep 25, 2023
343d1f6
Merge pull request #1860 from actiontech/add-status-1
sjjian Sep 25, 2023
dc2b875
chore:add update status
taolx0 Sep 25, 2023
c745d7d
Merge pull request #1861 from actiontech/add-status-2
sjjian Sep 25, 2023
387aee0
fix:count error and use default status
taolx0 Sep 25, 2023
23f7eb2
fix:count bad sql status
taolx0 Sep 26, 2023
4c3dcf2
Merge pull request #1862 from actiontech/add-status-3
sjjian Sep 26, 2023
5e01f43
chore:support batch insert
taolx0 Sep 26, 2023
0db7ff7
Merge pull request #1863 from actiontech/fix-sql-manage
sjjian Sep 26, 2023
bca727c
add a split line between report info and sql audit info
hasa1K Sep 26, 2023
60123f6
Merge pull request #1864 from actiontech/fix-issue1767
sjjian Sep 26, 2023
c3d2fbd
fix #1865
sjjian Sep 26, 2023
624c345
Merge pull request #1866 from actiontech/fix-1865
ColdWaterLW Sep 27, 2023
d5ece48
chore:swagger sql manage
taolx0 Sep 27, 2023
8f0d842
Merge pull request #1868 from actiontech/export
sjjian Sep 27, 2023
0a52320
feat:sql manage export
taolx0 Sep 27, 2023
3dd949e
filter query_rewrite schema
hasa1K Sep 27, 2023
2a01904
exchange rule name && update unit test
hasa1K Sep 27, 2023
7d4f6cc
feat:Possible userName are repeated
taolx0 Sep 27, 2023
9ef85b6
chore:util convert func
taolx0 Sep 27, 2023
e134571
Merge pull request #1871 from actiontech/export
sjjian Sep 27, 2023
073c8a0
Merge pull request #1873 from actiontech/fix-issue1783
ColdWaterLW Sep 27, 2023
6e2b563
exclude unnecessary case
ColdWaterLW Sep 27, 2023
0a0f926
Merge pull request #1874 from actiontech/issue-1872
sjjian Sep 27, 2023
dd8b8bf
optimize index suggestion
ColdWaterLW Sep 27, 2023
583d124
fix unit test
ColdWaterLW Sep 27, 2023
265b879
optimize audit result
ColdWaterLW Sep 27, 2023
5d76162
fix desc
ColdWaterLW Sep 27, 2023
9363a35
fix #1878
sjjian Sep 27, 2023
9f795ab
fix #1878
sjjian Sep 27, 2023
de44e3a
remove unused func
sjjian Sep 27, 2023
a402046
fix: extract sqls from xml file only save one
winfredLIN Sep 28, 2023
fefa19d
Merge pull request #1875 from actiontech/fix-issue974
sjjian Sep 28, 2023
d071d5e
chore:add remark field length
taolx0 Sep 28, 2023
7a0db62
Merge pull request #1881 from actiontech/fiel-length
sjjian Sep 28, 2023
3ab4761
Merge pull request #1879 from actiontech/fix-1878
ColdWaterLW Sep 28, 2023
a0d6cda
Merge pull request #1877 from actiontech/issue-1876
sjjian Sep 28, 2023
eb954b5
fix:error delete syntax in mysql5.7
taolx0 Sep 28, 2023
11500b2
Merge pull request #1882 from actiontech/version-sql-fix
sjjian Sep 28, 2023
d53acfa
perf: put judgment and add ; outside of for block
winfredLIN Sep 28, 2023
411a3b0
Merge pull request #1880 from winfredLIN/issue1027
ColdWaterLW Sep 28, 2023
8dfff9a
fix rule description
ColdWaterLW Sep 28, 2023
1b4c062
Merge pull request #1883 from actiontech/issue-1743
sjjian Sep 28, 2023
573c38e
merge release-2.2309
LordofAvernus Oct 26, 2023
d29159e
Merge remote-tracking branch 'sqle-ce/release-2.2309.x' into merge-2309
LordofAvernus Oct 26, 2023
48b10da
fix golint & fix unit test
LordofAvernus Oct 26, 2023
4a5bec2
adjustment projectid type
LordofAvernus Oct 27, 2023
b2a429c
fix wrong url && update readme
LordofAvernus Oct 27, 2023
d1dc01f
fix: field type causing query errors & get inst/user by dms server
LordofAvernus Nov 2, 2023
abce285
fix review: wrong url
LordofAvernus Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
uses: actions/setup-go@v2
with:
# Should be consistent with go.mod
go-version: '1.16'
go-version: '1.19.6'

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.43.0
version: v1.45.2

# If set to true then the action will use pre-installed Go
skip-go-installation: true
Expand All @@ -44,6 +44,6 @@ jobs:
uses: actions/setup-go@v2
with:
# Should be consistent with go.mod
go-version: '1.16'
go-version: '1.19.6'
- name: Unit test
run: make test
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ linters:
- rowserrcheck
- sqlclosecheck
- staticcheck
- forcetypeassert
# - forcetypeassert
- prealloc
- deadcode
- gosimple
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ endif
DOCKER_REGISTRY ?= 10.186.18.20

## Dynamic Parameter
GOLANGCI_LINT_IMAGE ?=golangci/golangci-lint:v1.43.0
GOLANGCI_LINT_IMAGE ?=golangci/golangci-lint:v1.45.2
SCSPELL_IMAGE ?=gerrywastaken/scspell
GO_COMPILER_IMAGE ?= golang:1.16
GO_COMPILER_IMAGE ?= golang:1.19.6
RPM_BUILD_IMAGE ?= rpmbuild/centos7

## Static Parameter, should not be overwrite
Expand All @@ -63,8 +63,8 @@ vet: swagger
GOOS=$(GOOS) GOARCH=amd64 go vet $$(GOOS=${GOOS} GOARCH=${GOARCH} go list ./...)

## Unit Test
test: swagger
cd $(PROJECT_NAME) && GOOS=$(GOOS) GOARCH=amd64 go test -v ./...
test:
cd $(PROJECT_NAME) && GOOS=$(GOOS) GOARCH=amd64 go test -v ./... -count 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-count 1 目的是啥

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

禁用测试缓存,避免本地用缓存跑测试


clean:
GOOS=$(GOOS) GOARCH=$(GOARCH) go clean
Expand Down Expand Up @@ -121,8 +121,9 @@ docker_check: docker_lint docker_scspell docker_test
docker_clean:
$(DOCKER) run -v $(shell pwd):/universe --rm $(GO_COMPILER_IMAGE) sh -c "cd /universe && make clean ${MAKEFLAGS}"

# todo 升级golang版本后,git获取版本号失败,临时添加"git config --global --add safe.directory /universe"解决
docker_install:
$(DOCKER) run -v $(shell pwd):/universe --rm $(GO_COMPILER_IMAGE) sh -c "cd /universe && make install $(MAKEFLAGS)"
$(DOCKER) run -v $(shell pwd):/universe --rm $(GO_COMPILER_IMAGE) sh -c "git config --global --add safe.directory /universe && cd /universe && make install $(MAKEFLAGS)"

docker_install_sqled:
$(DOCKER) run -v $(shell pwd):/universe --rm $(GO_COMPILER_IMAGE) sh -c "cd /universe && make install_sqled $(MAKEFLAGS)"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ SQLE 提供了多种安装部署的方式,用户可以结合自己的环境和
* 华北地区: 86-13910506562, 汪先生
* 华南地区: 86-18503063188, 曹先生
* 华东地区: 86-18930110869, 梁先生
* 西南地区: 86-13540040119, 洪先生
* 西南地区: 86-13540040119, 洪先生
113 changes: 107 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/actiontech/sqle

go 1.16
go 1.19

require (
github.com/99designs/gqlgen v0.17.20
Expand All @@ -26,13 +26,12 @@ require (
github.com/cznic/strutil v0.0.0-20181122101858-275e90344537
github.com/cznic/y v0.0.0-20181122101901-b05e8c2e8d7b
github.com/denisenkom/go-mssqldb v0.9.0
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect
github.com/facebookgo/freeport v0.0.0-20150612182905-d4adf43b75b9 // indirect
github.com/facebookgo/grace v0.0.0-20180706040059-75cf19382434
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
github.com/fatih/color v1.13.0
github.com/github/gh-ost v1.1.3-0.20210727153850-e484824bbd68
github.com/go-git/go-git/v5 v5.9.0
github.com/go-ini/ini v1.63.2
github.com/go-openapi/jsonreference v0.19.4 // indirect
github.com/go-openapi/spec v0.19.8 // indirect
Expand All @@ -42,7 +41,7 @@ require (
github.com/go-playground/validator/v10 v10.14.1
github.com/go-sql-driver/mysql v1.7.0
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/golang/protobuf v1.5.2
github.com/golang/protobuf v1.5.3
github.com/hashicorp/go-hclog v0.14.1
github.com/hashicorp/go-plugin v1.4.2
github.com/jackc/pgx/v4 v4.13.0
Expand All @@ -59,21 +58,123 @@ require (
github.com/pkg/errors v0.9.1
github.com/robfig/cron/v3 v3.0.1
github.com/sijms/go-ora/v2 v2.2.15
github.com/sirupsen/logrus v1.8.1
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.1.1
github.com/stretchr/testify v1.8.2
github.com/swaggo/echo-swagger v1.0.0
github.com/swaggo/swag v1.6.7
github.com/ungerik/go-dry v0.0.0-20210209114055-a3e162a9e62e
github.com/urfave/cli/v2 v2.8.1
github.com/vektah/gqlparser/v2 v2.5.1
golang.org/x/net v0.11.0
golang.org/x/net v0.15.0
google.golang.org/grpc v1.50.1
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/yaml.v2 v2.4.0
vitess.io/vitess v0.12.0
)

require (
dario.cat/mergo v1.0.0 // indirect
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/agnivade/levenshtein v1.1.1 // indirect
github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 // indirect
github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 // indirect
github.com/alibabacloud-go/endpoint-util v1.1.0 // indirect
github.com/alibabacloud-go/openapi-util v0.1.0 // indirect
github.com/alibabacloud-go/tea-xml v1.1.2 // indirect
github.com/aliyun/credentials-go v1.1.2 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/cznic/golex v0.0.0-20181122101858-9c343928389c // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect
github.com/facebookgo/freeport v0.0.0-20150612182905-d4adf43b75b9 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-mysql-org/go-mysql v1.3.0 // indirect
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/go-openapi/errors v0.20.3 // indirect
github.com/go-openapi/jsonpointer v0.19.3 // indirect
github.com/go-openapi/strfmt v0.21.7 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.10.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.1.1 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.8.1 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/labstack/gommon v0.4.0 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mailru/easyjson v0.7.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mitchellh/go-testing-interface v1.14.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opentracing/opentracing-go v1.1.0 // indirect
github.com/pingcap/errors v0.11.5-0.20201126102027-b0a155152ca3 // indirect
github.com/pingcap/log v0.0.0-20210317133921-96f4fcab92a4 // indirect
github.com/pingcap/tipb v0.0.0-20200522051215-f31a15d98fce // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/shirou/gopsutil v2.19.10+incompatible // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726 // indirect
github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07 // indirect
github.com/skeema/knownhosts v1.2.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14 // indirect
github.com/tjfoc/gmsm v1.3.2 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.mongodb.org/mongo-driver v1.11.3 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.17.0 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.13.0 // indirect
google.golang.org/genproto v0.0.0-20210701191553-46259e63a0a9 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace (
cloud.google.com/go/compute/metadata => cloud.google.com/go/compute/metadata v0.1.0
github.com/labstack/echo/v4 => github.com/labstack/echo/v4 v4.6.1
Expand Down
Loading
Loading