Comments (6)
I think the best location is shopping-cart/deploy/scripts/sql/
(or ddl/
). I'd also split and rename into write-side.sql
and read-side.sql
(or something like that).
Then, there's also some SQL for schema creation embedded in the .sh
scripts.
from lagom-samples.
Yes, sure.
from lagom-samples.
@ignasi35 why do you think it's better to split into two files?
from lagom-samples.
@ignasi35 why do you think it's better to split into two files?
I like having smaller, more clear pieces: a sql file for the journal and snapshots and another one for the offset store and, finally, the third one for user-provided tables. Then, if we think it's useful, a fourth one (preceding them all) to create the database schema(s).
This will be a pattern easy to reproduce in, for example, the mixed-persistence
samples where read-side and write-side use different technologies.
from lagom-samples.
Works for me. Any objections?
(I'm doing a revision of the deployment guide, so I'll sync that up with this.)
from lagom-samples.
I'm fine with it.
from lagom-samples.
Related Issues (20)
- Job "Run tests mixed persistence (java)" is flaky
- gRPC examples: Why are .proto in `impl` and not `api`? HOT 2
- Deployment jobs failures (RBAC issues?)
- Recommend using a recent JDK version, de-emphasize jetty-alpn
- Repository for publishing is not specified. HOT 2
- Introduce Startup Probe in shopping-cart samples
- Unable to run lagom grpc code HOT 2
- Replace Confirmation/Accepted/Rejected with StatusReply
- Need Sample for grpc with Maven HOT 4
- [maven/grpc] unable to find valid certification path to requested target HOT 2
- Entity testing with EventSourcedBehaviorTestKit
- gRPC: updated information about ALPN HOT 1
- grpc-specific scripts no longer necessary
- [Win/Linux] StatusRuntimeException: UNAVAILABLE: io exception in some OS HOT 1
- Migrate shopping-cart-scala tests to EventSourcedBehaviorTestkit
- AskTimeoutException in shopping-cart-java HOT 1
- gRPC integration tests can't start minikube on Travis HOT 1
- GRPC example doesn't run
- Tests using withJdbc() fail to start up with timeout HOT 1
- Undocumented behavior of Topic Subscription with ShoppingCart-Java HOT 4
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 lagom-samples.