nodecosmos / charybdis

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

Enable delete by LSI #27

Closed Zk2u closed 2 months ago

Zk2u commented 2 months ago

I'm pretty sure scylla supports this. I want to delete a row by it's partition key and a field included in an LSI. The macros don't generate this.

GoranBrkuljan commented 2 months ago

Delete by partition is available model.delete_by_partition_key()

Will implement delete by LSI funs when I get a chance.

GoranBrkuljan commented 2 months ago

Sorry, looks like we can not delete by LSI. While we can delete by partial primary key (with whole partition key), we can not delete by LSI.