This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-01
Channels
- # adventofcode (1)
- # bangalore-clj (1)
- # beginners (8)
- # boot (47)
- # cider (6)
- # cljsrn (3)
- # clojure (155)
- # clojure-brasil (2)
- # clojure-china (3)
- # clojure-conj (1)
- # clojure-hk (4)
- # clojure-korea (36)
- # clojure-russia (38)
- # clojure-spec (53)
- # clojure-taiwan (1)
- # clojure-uk (14)
- # clojurescript (70)
- # clojurex (9)
- # component (2)
- # cursive (20)
- # datascript (19)
- # datomic (39)
- # defnpodcast (1)
- # events (5)
- # figwheel (2)
- # hoplon (81)
- # incanter (2)
- # jobs (7)
- # juxt (3)
- # klipse (1)
- # leiningen (1)
- # luminus (15)
- # mount (1)
- # off-topic (21)
- # om (5)
- # om-next (2)
- # onyx (19)
- # pedestal (2)
- # proto-repl (1)
- # proton (5)
- # re-frame (19)
- # reagent (4)
- # rethinkdb (2)
- # ring-swagger (6)
- # rum (13)
- # specter (6)
- # untangled (4)
- # yada (1)
I'm new to postgresql (but not to SQL). What do people use as a tool for schema migrations?
don't think it needs to be written in clojure necessarily, but bonus points of course 🙂
I'm happy with joplin
.
@saeidscorp looks interesting
@pesterhazy I searched a lot for doing migrations in clojure too, no luck!
because of diversity in different sql syntaxes/engines.
it's really hard to create a single library to conform to all of these standards and still stay predictable and reliable.
I mean to create schemas for different sql engines, using a single clojure code.
ultimately you'll work with a single database vendor anyway
so it's best to just write that DDL SQL directly in {postgres,mysql,}'s dialect
agreed 😊👍
Flyway is very robust tool for running migrations from SQL files: https://flywaydb.org/
It is a java library but using it from Clojure requires only a few interop calls
@juhoteperi that looks great actually
love the docs, flyway is a keeper
I use liquibase with this clojure wrapper: https://github.com/kumarshantanu/clj-liquibase
All DDLs are directly written in SQL - I use MySQL.
I use joplin also, but I had to use this fix: https://github.com/juxt/joplin/issues/8#issuecomment-152650634