Comments (3)
Hi @todor-kolev
First of all, our apologies for not handling this issue until now; the news agenda has kept us busy to say the least 😅
I’ve given this issue some thought. I think you are right that scanamo should provide some measure of protection against a subset of errors. However I wouldn’t want our solution to encourage bad practices; besides, an empty list might not be semantically correct depending on if you view the bottle as half-full or half-empty.
A nice solution IMHO would be to leverage the type system so that this constraint can be statically checked at compile time. Do you feel like this would be an acceptable fix for your use case?
from scanamo.
I don't think there's a way to check how many key ids the client will ask for at compile time but I guess you can make the function accept NonEmptyList of some sort. .
from scanamo.
That is indeed what I ended up using, NonEmptySet
to be specific. I am not sure we want this still, please feel free to chime in the discussion in the PR above.
from scanamo.
Related Issues (20)
- Extend transactPutAll, transactUpdateAll and transactDeleteAll with optional ConditionExpression argument HOT 2
- Extend scan operation with Segments
- Adopt `sbt-dynamodb` into the Scanamo organisation? HOT 3
- Not able to use >= on string sort key
- Publish latest?
- Question: Should I be instantiating a different client per service?
- migrate to github action HOT 6
- Conditionally apply a filter
- [error] clienterror: an error occurred (validationexception) when calling the putitem operation: one or more parameter values were invalid: contains duplicates. HOT 1
- PutReturn.NewValue is not supported by AWS DynamoDB
- Scala 3 HOT 3
- Scanamo query timeouts...
- Null Pointer Exception when trying to call any methods accessing DynamoDb
- Where is the API documentation? HOT 1
- Pagination against GSIs is cumbersome with the current API.
- Add support for BigInt
- Pekko integration HOT 1
- ZIO 2 support
- Let's release v1.0.0 and drop milestone releases! HOT 3
- Error when case class has more than 36 properties
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scanamo.