Open kakserpom opened 5 months 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.
Hmm maybe I can check if there's any feature request for it at scylla-rust-driver. A native way to make it would be good tho.
It would be easier to wrap it and bring to other drivers.
It would be easier to wrap it and bring to other drivers.
Not sure if it will be possible as USING TTL
is part of the query itself.
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