All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.laserdisc.scanamo.circe.CirceDynamoFormat.scala Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package io.laserdisc.scanamo.circe

import io.circe.*
import io.laserdisc.scanamo.circe.internal.*
import org.scanamo.*

/** Import `CirceDynamoFormat.*` to get the default `DynamoFormat` instance for encoding and decoding models to dynamodb using Circe.
  * 

* * Note: This implementation will encode null Json object attributes as `Null`-type dynamodb objects, e.g.
 "foo": { "NULL": true}
  * 
* * @see * [[CirceDropNullDynamoFormat]] for an alternate implementation which drops such null values */ object CirceDynamoFormat { implicit def defaultFormat[T: Encoder: Decoder]: DynamoFormat[T] = mkCirceDynamoFormat[T](writeNullObjectAttrs = true) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy