Skip to content

Releases: GoranBrkuljan/charybdis

v1.1.0

19 Nov 21:38

Choose a tag to compare

What's Changed

  • feature: implement find_by_fields_paged in #86
  • update: remove limits for maximum for generated find_by_fields functions by @GoranBrkuljan in #86

Now we have generated find_by_fields functions for all primary key fields, and we have find_by_fields_paged variant that we can use like this:

  #[charybdis_model(
      table_name = posts,
      partition_keys = [date],
      clustering_keys = [category_id, title],
      global_secondary_indexes = [category_id],
      local_secondary_indexes = [title]
  )]
  pub struct Post {
      pub date: Date,
      pub category_id: Uuid,
      pub title: Text,
  }

// paged finders over partition key + clustering keys
 let (paged_posts_iter, paging_state) = Post::find_by_date_and_category_id_paged(date, category_id)
     .page_size(10)
     .execute(db_session)
     .await?;
 let paged_posts = paged_posts_iter.collect::<Result<Vec<Post>, CharybdisError>>()?;

 if let PagingStateResponse::HasMorePages { state } = paging_state {
     let (next_page_iter, next_state) = Post::find_by_date_and_category_id_paged(date, category_id)
         .paging_state(state)
         .page_size(10)
         .execute(db_session)
         .await?;
     let _next_posts = next_page_iter.collect::<Result<Vec<Post>, CharybdisError>>()?;
     assert!(matches!(next_state, PagingStateResponse::NoMorePages));
 }

Full Changelog: v1.0.4...v1.1.0

v1.0.4

10 Nov 19:52
b2a93ee

Choose a tag to compare

What's Changed

v1.0.3

04 Sep 07:25

Choose a tag to compare

What's Changed

v1.0.2

03 Jun 11:25

Choose a tag to compare

What's Changed

update: scylla driver version to 1.2.0 #83
update: add load_balancing_policy query option #83

v1.0.1

19 Apr 12:22

Choose a tag to compare

What's Changed

update: scylla driver version to 1.1.0: f84ce83

v1.0.0

28 Mar 10:09
77a0027

Choose a tag to compare

What's Changed

  • update: scylla driver to 1.0.0 #81

Just as Scylla's driver, Charybdis ORM is now considered as API-stable.

Breaking changes:

The ORM itself does not introduce any breaking API changes. However, most changes stem from the driver’s reorganized dependencies. For example:

  • scylla::CachingSession is now scylla::client::caching_session::CachingSession
  • scylla::statement::{PagingState, PagingStateResponse}; has moved to scylla::response::{PagingState, PagingStateResponse}

For the full list of driver-related breaking changes, see the Scylla Rust Driver v1.0.0 release notes.

v0.7.14

03 Mar 14:10

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.13...v0.7.14

v0.7.13

29 Jan 17:12
d49ca60

Choose a tag to compare

What's Changed

  • update: add methods to read query string in #70
  • feature: column type override by @johnny-smitherson in #72
  • feature: add find_model_rule helper to materialized views by @GoranBrkuljan in #73
  • fix: allow multiple views in the same file in #73

Full Changelog: v0.7.11...v0.7.13

v0.7.11

15 Jan 19:26

Choose a tag to compare

What's Changed

  • migrations should ignore target dir
  • migrations should run from current directory and not try to lookup for flies in ancestor directories
  • add owned values to batch
  • add example for actix web

Full Changelog: v0.7.10...v0.7.11

v0.7.10

18 Dec 12:28

Choose a tag to compare

What's Changed

  • feat: Add migrate as feature of charybdis by @theelderbeever in #62
        use charybdis::migrate::MigrationBuilder;
  • update: scylla version & address new compiler warnings by @GoranBrkuljan in #64
  • update: re-export scylla from lib to ensure version consistency between the driver and the ORM

New Contributors

Full Changelog: v0.7.9...v0.7.10