Releases: flum1025/sql-enum-generator
Releases · flum1025/sql-enum-generator
v1.0.0
Summary
This version adds support for integer types in enum values, includes relevant examples, and updates the Go version.
Changes
- Feature: Added integer type support for enum values
- Documentation: Added integer type examples to demonstrate usage
- Infrastructure: Updated Go version from 1.23.0 to 1.25.1
Breaking Changes ⚠️
- Generated enum types: Previously, all enum values from database master data were generated as string types. Now, numeric values in the database will be generated as integer types instead of strings.
- Impact: This affects any existing enums where the database master data contains numeric values. The generated Go code will change from string constants to integer constants.
Full Changelog: v0.3.2...v1.0.0
v0.3.2
v0.3.1
v0.3.0
Add:
- Add query-generate command
- Added capability to export master data from database when not managed as SQL files
Change:
- Generate schema as openapi enum with x-enum-varname
Full Changelog: v0.2.1...v0.3.0
v0.2.1
v0.2.0
Changed
- Output Schema Structure: The structure of the generated OpenAPI schema has been updated to improve clarity and usability.
Full Changelog: v0.1.1...v0.2.0
v0.1.1
Fixes:
- NULL Column Handling: Resolved an issue that caused the application to panic when encountering columns with NULL values in the SQL statements. The application now gracefully handles NULL values during parsing.
Full Changelog: v0.1.0...v0.1.1
v0.1.0
This is the initial release of sql-enum-generator, a tool designed to convert SQL INSERT statements into OpenAPI schema files.
Full Changelog: https://github.com/flum1025/sql-enum-generator/commits/v0.1.0