Skip to content

v0.24.0

Choose a tag to compare

@blackbeam blackbeam released this 23 Jul 20:35
· 372 commits to master since this release

API changes

  • library switched to non-consuming API:

    // pre 0.24.0:
    let conn = conn.query_drop("DO 1").await?;
    
    // 0.24.0:
    conn.query_drop("DO 1").await?;
  • Queryable trait was updated and now it is more convenient to work with usual single-result sets.
    Use Queryable::query_iter and Queryable::exec_iter if you need more flexibility.

  • Query trait was introduced. It allows you to run queries directly on a Pool and to create 'static QueryResults

  • Thick Stmt structure was removed in favor of the Statement structure, which is a thin wrapper over raw statement identifier and metadata.

Fixes