Giter Club home page Giter Club logo

Comments (8)

trbngr avatar trbngr commented on June 7, 2024

I pushed a small repro here.

I must be tired. 💩

from scanamo.

trbngr avatar trbngr commented on June 7, 2024

Turns out I just need some implicit formats for certain properties of my case classes.

ie. EntityId, ConferenceId, OffsetDateTime, etc...

from scanamo.

trbngr avatar trbngr commented on June 7, 2024

Just one more hurdle....how can I create a DynamoFormat for an ADT.

see this

Not sure it's the best way, but it's an ADT and not changing. So it works for me.

from scanamo.

trbngr avatar trbngr commented on June 7, 2024

To be clear for anyone reading this in the future....

Make sure all properties in a case class have a DynamoFormat in scope. If not, you won't get any helpful errors. It will just say that there's not a format for your class.

See this link for examples.

from scanamo.

philwills avatar philwills commented on June 7, 2024

Sorry, only just noticed this. It looks pretty good to me.

The pattern with the sealed trait seems reasonably common and is something I'd like to provide a way of deriving, to avoid all that boilerplate.

from scanamo.

trbngr avatar trbngr commented on June 7, 2024

Oh. I forgot about this. I actually wrote a macro for this. I will post it later

from scanamo.

trbngr avatar trbngr commented on June 7, 2024

Here's the macro I ended up with. Hope it helps.

https://gist.github.com/trbngr/75195f0f8fd8f5b33491b1dc22707249

from scanamo.

apple-corps avatar apple-corps commented on June 7, 2024

I had been building my own local scanamo 6.1-SNAPSHOT locally with #55 applied. I had been using a simple case class with a derived format created by scanamo-scrooge, like case class AFormatWrapper(rowkey: Array[Byte],det: AFormat) . Now updating to scanamo 7 and getting:

could not find implicit value for evidence parameter of type com.gu.scanamo.DynamoFormat[com.example.AFormatWrapper]

I think I'm facing the same issue. @philwills this seems to be a related issue. Any suggestions?

from scanamo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.