Add documentation and examples on how Cornucopia interacts with migration frameworks

Aperta
#174 9 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
postgresql, rust

Direzione di ricerca

Start by reviewing Cornucopia's documentation and examples for schema input, then check how the project invokes its CLI and handles PostgreSQL schemas. Add an example that combines Cornucopia with a migration framework such as Refinery and explains whether migrations must be applied before generation. The issue does not name specific files or tests; done means the workflow and its requirements are documented with a working example.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation good first issue

When using migration frameworks like Refinery one usually don't list the entire DB schema at once but create incremental migrations that alter parts of the schema at time. Am I right that I can't directly feed Cornucopia SQL constructs like ALTER TABLE and friends?

My thinking now is, at build time (or when running the Cornucopia cli), to apply the migrations on PostgreSQL and get back the resulting schema, and only then pass it to Cornucopia. But is this really necessary?

It would be great to have an example combining Cornucopia and some migration framework.

Lingua principale
Rust
Stelle
1.2k
Fork
77
Merge medio
5g 12h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cornucopia-rs/cornucopia

Tutte le issue di cornucopia-rs/cornucopia

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.