Skip to content

v0.7.0

Choose a tag to compare

@fakhrulnugroho fakhrulnugroho released this 07 Jun 12:49

What's Changed

⚠️ Breaking (internal): pgrs is now a Cargo workspace split into two crates — pgrs-core (logic) and pgrs-cli (the pgrs binary). The CLI behavior is unchanged; this only affects anyone consuming the code as a library.

🚀 New Features

  • Postgres query errors kini menampilkan SQLSTATE code, detail/hint, dan penanda caret (^) pada posisi error — pesan error jauh lebih informatif

🐛 Bug Fixes

  • \stats <table> tidak lagi kosong — penggunaan kolom nyata kini direkam dengan benar
  • Path data dir yang bukan UTF-8 kini memunculkan error eksplisit (tidak lagi fallback diam-diam)

🧹 Internal / Refactoring

  • Kode dipecah menjadi workspace pgrs-core + pgrs-cli dengan boundary hexagonal yang ditegakkan compiler
  • pg_catalog lookups & klasifikasi SQL (DDL/DML) dipindah ke core
  • Error port diseragamkan ke DomainError; service membubble-up error alih-alih eprintln!
  • DI analytics/schema dipindah ke composition root

Full Changelog: v0.6.0...v0.7.0