Skip to content

v0.12.0

Compare
Choose a tag to compare
@sunng87 sunng87 released this 26 Mar 07:50
· 278 commits to master since this release
b823cba

[0.12.0] - 2023-03-26

Added

  • ToSqlText trait and default implementation for some types. This trait is
    similar to ToSql from postgres-types package. It provide text format
    encoding while ToSql are binary by default.

Changed

  • Updated DataRowEncoder encode API with unified encode_field for both
    binary and text encoding. DataRowEncoder::new now accepts
    Arc<Vec<FieldInfo>> instead of column count. The encoder now has type and
    format information for each column. encode_field no longer requires Type
    and FieldFormat. A new encode_field_with_type_and_format is provided for
    custom use-case.
  • Updated do_describe API from ExtendedQueryHandler to include full
    information about requested Statement or Portal.
  • query_response function is replaced by QueryResponse::new