Skip to content

v1.10.1

Latest

Choose a tag to compare

@8treenet 8treenet released this 20 Jul 18:30

feat: add Postgres support for PO code generation, upgrade crypto deps, and optimize multipart logging

  • Add --driver flag (mysql/postgres) to new-po command with Postgres type mapping
    using information_schema + pg_description for columns and primary keys
  • Switch dial() to gorm dialector, fixing 'unknown driver postgres' error
  • Unify type mapping via Generate.goType helper across mysql, postgres, and JSON paths
  • Parameterize table filter queries to prevent SQL injection
  • Drop unused Nullable scan and dead code in JSONFile branch
  • Upgrade golang.org/x/crypto from v0.45.0 to v0.52.0 to fix multiple security
    vulnerabilities (#27, #29, #30, #31, #33, #34, #35, #36, #38, #39)
  • Update transitive dependencies: x/net v0.47.0->v0.54.0, x/sync v0.18.0->v0.20.0,
    x/sys v0.38.0->v0.45.0, x/text v0.31.0->v0.37.0
  • Skip reading request body for multipart/form-data uploads to avoid large binary
    memory load and garbled log output