Giter VIP home page Giter VIP logo

Comments (6)

ignasi35 avatar ignasi35 commented on May 29, 2024 1

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.

octonato avatar octonato commented on May 29, 2024

Yes, sure.

from lagom-samples.

TimMoore avatar TimMoore commented on May 29, 2024

@ignasi35 why do you think it's better to split into two files?

from lagom-samples.

ignasi35 avatar ignasi35 commented on May 29, 2024

@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.

TimMoore avatar TimMoore commented on May 29, 2024

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.

octonato avatar octonato commented on May 29, 2024

I'm fine with it.

from lagom-samples.

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.