Comments (10)
There's nothing particular to the examples that requires them to have new tables.
The main reason for creating and dropping tables as part of the examples is that they're all executed as test cases as part of the build pipeline.
If there's anything that's still not clear, let me know and I'll try and elaborate.
from scanamo.
I'm a bit confused as to how to use a table that has a hash and a sort key and one that has a GSI index. Can you please elaborate on this?
Thank you very much, this is an awesome library
from scanamo.
The Table scaladoc has an example showing querying from a GSI.
While the Scanamo scaladoc has an example of getting with a hash and range key. I should probably move the latter over to the Table
docs now, as that's the main approach I'm suggesting.
from scanamo.
Thanks! That helps a lot :-)
from scanamo.
Oops my fat fingers
from scanamo.
I took a look at the Table example you provided. To make it more clearer that you are using a GSI, it would be great if you could state in a comment as to how the table is configured (primary key, GSI hash and sort key). What do you think?
from scanamo.
Yes, I'll try and add something to the README (unless someone else gets round to a PR first).
I need to take a look at how to structure it better at some point too.
from scanamo.
Sounds good. I'm also working on a full end to end example with Play framework to get a simple REST API hooked into DynamoDB via Scanamo. You can find it here
https://github.com/referentiallytransparent/play-framework-validation-example/tree/feature/crud/app/services/data/dynamodb
Still have to clean it up some more
from scanamo.
Does https://github.com/guardian/scanamo/blob/00e4d4530acba3709e4a67c9010ea62874aaf3b0/README.md#using-indexes look like it explains things a bit more?
from scanamo.
Absolutely, great job 👍
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.