Skip to content

v1.3.0 – Optional parameters & binary protocol optimization

Choose a tag to compare

@g2px1 g2px1 released this 31 Oct 10:19
· 95 commits to main since this release

Added

  • Support for std::optional<T> and std::nullopt → automatic SQL NULL
  • Full binary encoding for all numeric types (bool, int16/32/64, float, double)
  • Mixed text/binary parameter support in exec_param_query_nonblocking
  • Automatic OID inference for text parameters

Changed

  • Replaced text-based numeric serialization with zero-allocation binary encoding

Performance

  • Reduced parameter serialization overhead by up to ~35–45%
  • Fewer heap allocations during query preparation

Compatibility

  • Safe with any combination of argument types
  • Backward compatible with existing query logic