Open kakserpom opened 2 weeks ago
Not planning it ATM, I'll assign myself when I get a chance. Meanwhile, PR is welcomed. insert_using_ttl(seconds: u32)
and update_using_ttl(seconds: u32)
are good.
I would use time::Duration.
TTL in scylla query is specified in seconds so I thought it's just easier. However, you are right, we could have duration and convert it in seconds within method.
I would like
insert_using_ttl()
andupdate_using_ttl()
operations to be added.Also, it would be nice to be able to generate
TTL(foo)
in selects.Scylla docs: https://opensource.docs.scylladb.com/stable/cql/time-to-live.html