taoensso / faraday

Amazon DynamoDB client for Clojure
https://www.taoensso.com/faraday
Eclipse Public License 1.0
238 stars 84 forks source link

Add support for table TTL configuration #134

Closed joelittlejohn closed 4 years ago

joelittlejohn commented 4 years ago

Mostly code snippets taken from #120.

joelittlejohn commented 4 years ago

Still need to bring across the tests and add a couple more.

joelittlejohn commented 4 years ago

This one is ready to review.

I took snippets of code and tests from #120 and expanded the tests a little. I also added ensure-ttl as I think this is how most people will want to apply their configuration (cf. ensure-table). Also added some docstrings.

joelittlejohn commented 4 years ago

One surprise for me in implementing this one is that DynamoDB requires the attribute name to be given when disabling TTL.