Skip to content

Conversation

@si3nloong
Copy link
Owner

@si3nloong si3nloong commented Jul 16, 2022

Beware!!! This release consists a lot of BREAKING CHANGES.

  • Upgrade requirement to at least go1.18, replace all interface{} type to any type.
  • Updated the test script to use latest version of Go and github actions plugins.
  • Fixed the Reset bug of SQL statement (The timer doesn't reset even Reset executed).
  • Refactor folder structure.
  • Renamed Mapper to mapper, Structer to StructInfo.
  • Added LRU cache for struct mapper.
  • Rework transaction API.
  • Rework lock API.
  • Rework pagination API.
  • Rework SQL encoder to support function execution before INSERT/UPDATE.
  • Support multiple tag keys, such as db, sql or sqlike.
  • Support foreign key.
  • Support JOIN.
  • Support multi-valued indexes.
    - [ ] Support Postgres driver.
  • Support UUID data type.
  • Update documentation.
  • Support different naming convention thru configuration

CHANGELOGS

  • 13f62d2 - rename Result to Rows
  • 7c2e900 - support JOIN operation
  • 0aeab88 - refactor Transaction, renamed RollbackTransaction to Rollback, and CommitTransaction to Commit
  • def3873 - refactor Debug interface
  • e7f1d64 - support multiple struct field tag
  • ec1a631 - refactor LookUp function of struct tag to Option
  • eebb425 - rework encoder
  • eebb425 - support UUID data type
  • ae491d7 - allow to configure naming convention using env variable

@si3nloong si3nloong changed the title 🔖 release: a brand new release v2.0.0, wow!!! 🔖 release: a brand new release v2.0.0, wow!!! 🥳 Jul 16, 2022
@codecov
Copy link

codecov bot commented Jul 16, 2022

Codecov Report

Patch coverage: 40.65% and project coverage change: -3.42% ⚠️

Comparison is base (cd24c19) 51.28% compared to head (7d7825e) 47.86%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #175      +/-   ##
==========================================
- Coverage   51.28%   47.86%   -3.42%     
==========================================
  Files         122      135      +13     
  Lines       10541    11087     +546     
==========================================
- Hits         5406     5307      -99     
- Misses       4915     5564     +649     
+ Partials      220      216       -4     
Files Changed Coverage Δ
actions/actions.go 100.00% <ø> (ø)
actions/delete_one.go 0.00% <0.00%> (ø)
actions/find.go 0.00% <0.00%> (ø)
actions/paginate.go 0.00% <0.00%> (ø)
actions/update.go 0.00% <0.00%> (ø)
actions/update_one.go 0.00% <0.00%> (ø)
client.go 0.00% <0.00%> (ø)
column.go 0.00% <0.00%> (ø)
connection.go 3.33% <0.00%> (ø)
context.go 0.00% <0.00%> (ø)
... and 110 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@si3nloong si3nloong changed the title 🔖 release: a brand new release v2.0.0, wow!!! 🥳 🔖 release: a brand new release v2, wow!!! 🥳 Jul 16, 2022
@si3nloong si3nloong added this to the Version 2 milestone Jul 17, 2022
@si3nloong si3nloong self-assigned this Jul 17, 2022
@si3nloong si3nloong marked this pull request as draft August 30, 2022 11:26
si3nloong and others added 19 commits April 17, 2023 19:00
…b.com/casbin/casbin/v2-2.67.0

chore(deps): bump github.com/casbin/casbin/v2 from 2.66.2 to 2.67.0
…b.com/Masterminds/semver/v3-3.2.1

chore(deps): bump github.com/Masterminds/semver/v3 from 3.2.0 to 3.2.1
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](go-sql-driver/mysql@v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github.com/paulmach/orb](https://github.com/paulmach/orb) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/paulmach/orb/releases)
- [Changelog](https://github.com/paulmach/orb/blob/master/CHANGELOG.md)
- [Commits](paulmach/orb@v0.9.0...v0.9.1)

---
updated-dependencies:
- dependency-name: github.com/paulmach/orb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…b.com/go-sql-driver/mysql-1.7.1

chore(deps): bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1
…b.com/paulmach/orb-0.9.1

chore(deps): bump github.com/paulmach/orb from 0.9.0 to 0.9.1
Bumps [github.com/casbin/casbin/v2](https://github.com/casbin/casbin) from 2.67.0 to 2.68.0.
- [Release notes](https://github.com/casbin/casbin/releases)
- [Changelog](https://github.com/casbin/casbin/blob/master/.releaserc.json)
- [Commits](casbin/casbin@v2.67.0...v2.68.0)

---
updated-dependencies:
- dependency-name: github.com/casbin/casbin/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…b.com/casbin/casbin/v2-2.68.0

chore(deps): bump github.com/casbin/casbin/v2 from 2.67.0 to 2.68.0
Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.11.4 to 1.11.6.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](mongodb/mongo-go-driver@v1.11.4...v1.11.6)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github.com/paulmach/orb](https://github.com/paulmach/orb) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/paulmach/orb/releases)
- [Changelog](https://github.com/paulmach/orb/blob/master/CHANGELOG.md)
- [Commits](paulmach/orb@v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: github.com/paulmach/orb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [cloud.google.com/go](https://github.com/googleapis/google-cloud-go) from 0.110.0 to 0.110.2.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](googleapis/google-cloud-go@v0.110.0...v0.110.2)

---
updated-dependencies:
- dependency-name: cloud.google.com/go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
….google.com/go-0.110.2

chore(deps): bump cloud.google.com/go from 0.110.0 to 0.110.2
…b.com/paulmach/orb-0.9.2

chore(deps): bump github.com/paulmach/orb from 0.9.1 to 0.9.2
…ngodb.org/mongo-driver-1.11.6

chore(deps): bump go.mongodb.org/mongo-driver from 1.11.4 to 1.11.6
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github.com/casbin/casbin/v2](https://github.com/casbin/casbin) from 2.68.0 to 2.69.1.
- [Release notes](https://github.com/casbin/casbin/releases)
- [Changelog](https://github.com/casbin/casbin/blob/master/.releaserc.json)
- [Commits](casbin/casbin@v2.68.0...v2.69.1)

---
updated-dependencies:
- dependency-name: github.com/casbin/casbin/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…b.com/stretchr/testify-1.8.3

chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
…b.com/casbin/casbin/v2-2.69.1

chore(deps): bump github.com/casbin/casbin/v2 from 2.68.0 to 2.69.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
dependabot bot and others added 30 commits January 15, 2025 21:14
Bumps google.golang.org/protobuf from 1.36.2 to 1.36.3.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…e.golang.org/protobuf-1.36.3

chore(deps): bump google.golang.org/protobuf from 1.36.2 to 1.36.3
Bumps google.golang.org/protobuf from 1.36.3 to 1.36.4.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…e.golang.org/protobuf-1.36.4

chore(deps): bump google.golang.org/protobuf from 1.36.3 to 1.36.4
Bumps [cloud.google.com/go](https://github.com/googleapis/google-cloud-go) from 0.118.0 to 0.118.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](googleapis/google-cloud-go@v0.118.0...v0.118.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
….google.com/go-0.118.1

chore(deps): bump cloud.google.com/go from 0.118.0 to 0.118.1
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…g.org/x/text-0.22.0

chore(deps): bump golang.org/x/text from 0.21.0 to 0.22.0
Bumps google.golang.org/protobuf from 1.36.4 to 1.36.5.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…e.golang.org/protobuf-1.36.5

chore(deps): bump google.golang.org/protobuf from 1.36.4 to 1.36.5
Bumps [cloud.google.com/go](https://github.com/googleapis/google-cloud-go) from 0.118.1 to 0.118.2.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](googleapis/google-cloud-go@v0.118.1...v0.118.2)

---
updated-dependencies:
- dependency-name: cloud.google.com/go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
….google.com/go-0.118.2

chore(deps): bump cloud.google.com/go from 0.118.1 to 0.118.2
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](go-sql-driver/mysql@v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…b.com/go-sql-driver/mysql-1.9.0

chore(deps): bump github.com/go-sql-driver/mysql from 1.8.1 to 1.9.0
Bumps [cloud.google.com/go](https://github.com/googleapis/google-cloud-go) from 0.118.2 to 0.118.3.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](googleapis/google-cloud-go@v0.118.2...v0.118.3)

---
updated-dependencies:
- dependency-name: cloud.google.com/go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
….google.com/go-0.118.3

chore(deps): bump cloud.google.com/go from 0.118.2 to 0.118.3
Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.17.2 to 1.17.3.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](mongodb/mongo-go-driver@v1.17.2...v1.17.3)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ngodb.org/mongo-driver-1.17.3

chore(deps): bump go.mongodb.org/mongo-driver from 1.17.2 to 1.17.3
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…g.org/x/text-0.23.0

chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0
Bumps [cloud.google.com/go](https://github.com/googleapis/google-cloud-go) from 0.118.3 to 0.119.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](googleapis/google-cloud-go@v0.118.3...v0.119.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
….google.com/go-0.119.0

chore(deps): bump cloud.google.com/go from 0.118.3 to 0.119.0
Bumps [github.com/casbin/casbin/v2](https://github.com/casbin/casbin) from 2.103.0 to 2.104.0.
- [Release notes](https://github.com/casbin/casbin/releases)
- [Changelog](https://github.com/casbin/casbin/blob/master/.releaserc.json)
- [Commits](casbin/casbin@v2.103.0...v2.104.0)

---
updated-dependencies:
- dependency-name: github.com/casbin/casbin/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…b.com/casbin/casbin/v2-2.104.0

chore(deps): bump github.com/casbin/casbin/v2 from 2.103.0 to 2.104.0
Bumps [cloud.google.com/go](https://github.com/googleapis/google-cloud-go) from 0.119.0 to 0.120.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](googleapis/google-cloud-go@v0.119.0...v0.120.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
….google.com/go-0.120.0

chore(deps): bump cloud.google.com/go from 0.119.0 to 0.120.0
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](go-sql-driver/mysql@v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…b.com/go-sql-driver/mysql-1.9.1

chore(deps): bump github.com/go-sql-driver/mysql from 1.9.0 to 1.9.1
Bumps google.golang.org/protobuf from 1.36.5 to 1.36.6.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…e.golang.org/protobuf-1.36.6

chore(deps): bump google.golang.org/protobuf from 1.36.5 to 1.36.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support different naming convention Support skip lock and no wait Refactor SQL encoder Support MySQL 8.0 UUID Support foreign key and JOIN

2 participants