Skip to content

Releases: go-dev-frame/sponge

v1.12.7

16 Feb 15:55
Compare
Choose a tag to compare

Change log

  • Added StrToUint and UintToStr functions to fix the problem of converting sql to go type uint.

v1.12.6

08 Feb 13:31
Compare
Choose a tag to compare

Change log

  • Built-in AI assistant (DeepSeek or ChatGPT) supports generation of business logic code from specified go files.

v1.12.5

25 Jan 11:57
Compare
Choose a tag to compare

Change log

  • Support the use of ChatGPT or DeepSeek assistant to analyze and generate business logic code based on prompts

v1.12.3

20 Jan 05:50
Compare
Choose a tag to compare

Change log

  • Fixed zero-valued judgments for types decimal and json.

v1.12.2

19 Jan 15:19
Compare
Choose a tag to compare

Change log

  • Custom conditional queries support null values and parenthesis group.
  • Generate code to support parsing mysql data types bit(1) and decimal.
  • Optimize gin and gRPC for jwt certification.

v1.12.1

19 Dec 16:16
Compare
Choose a tag to compare

Change log

Transfer ownership of the zhufuyi/sponge repository to the go-dev-frame/sponge.


Note: If the current version of Sponge is lower than v1.11.1, and you want to upgrade to a higher version, execute the following command:

go install github.com/go-dev-frame/sponge/cmd/sponge@latest
sponge upgrade

v1.12.0

19 Dec 07:52
Compare
Choose a tag to compare

Change log

Transfer ownership of the zhufuyi/sponge repository to the go-dev-frame/sponge.


Note: If you currently have Sponge v1.11.1 and below, if you want to upgrade to a higher version, execute the following command:

go install github.com/go-dev-frame/sponge@latest
sponge upgrade

v1.11.1

17 Dec 15:20
Compare
Choose a tag to compare

Change log

Upgrade library versions:

v1.11.0

01 Dec 14:48
Compare
Choose a tag to compare

Major Feature Updates

  1. Customizable Primary Keys for SQL Tables:

    • Primary key names are no longer restricted to id, and the type is no longer limited to integers. Other names and string types are now supported.
  2. Improved Code Generation:

    • Added a command for generating code based on custom templates and fields.
    • Added a command for generating code based on custom templates and SQL.
    • Added a command for generating code based on custom templates and Protobuf.
    • Added a protoc plugin for converting Protobuf to JSON.
    • Introduced a web interface for generating code using custom templates.

Framework and Code Enhancements

  1. Simplified service code generation:

    • Removed default code blocks for service registration and discovery and Nacos configuration center. If needed, users can add them manually.
  2. Directory Structure Optimization:

    • Moved internal/model/init.go to the internal/database directory.
  3. Simplified Dependencies:

    • Replaced pkg/ggorm with pkg/sgorm, reducing code dependencies during compilation.
    • Delete dropped library pkg/mysql

New Commands and Tools

  1. Command Enhancements:

    • The make proto command now automatically initializes the database and imports dependencies from types.proto.
  2. Simplified command:

    • Merge sponge configmap into sponge config and rename it cm, see the help sponge config cm -h.
  3. Architecture Diagram Generation:

Upgrade Dependency Library Version

  • google.golang.org/grpc: v1.61.0 --> v1.67.1
  • github.com/grpc-ecosystem/go-grpc-middleware: v1.3.0 --> v2.1.0
  • github.com/redis/go-redis/v9: v9.6.1 --> v9.7.0
  • go.etcd.io/etcd/client/v3: v3.5.4 --> v3.5.13

Bug Fixes

v1.10.3

27 Oct 10:16
Compare
Choose a tag to compare

Change log

  • Fix for specifying schema in postgesql #74.
  • Add statistics on grpc service connections in metrics.