nodecosmos / charybdis

Rust ORM for ScyllaDB and Apache Cassandra
MIT License
108 stars 6 forks source link

feat: add configurable queries with method chaining #7

Closed GoranBrkuljan closed 4 months ago

GoranBrkuljan commented 5 months ago

Feature:

Introduce configurable queries so we can set consistency and other query options by using method chaining.

E.g.

 let model = Model {
        pk_field: partition_key,
        ck_field: clustering_key,
        ..Default::default()
    }
    .find_by_primary_key()
    .consistency(Consistency::All)
    .execute(&caching_session)
    .await?;

Todo: