Commit fe463569 authored by Philipp Middendorf's avatar Philipp Middendorf
Browse files

Add “how to build” to readme

parent 61b4fe96
Pipeline #4095 passed with stage
in 2 minutes and 17 seconds
......@@ -37,7 +37,19 @@ The resulting image looks like this:
[[./test-data/testfile.png]]
So it draws nice arrows and stuff.
** How to build
This project uses the [[https://www.haskell.org/][Haskell]] language and is built using the [[https://docs.haskellstack.org/en/stable/README/][Stack]] build tool. On Unix, this can be installed via:
#+begin_example
curl -sSL https://get.haskellstack.org/ | sh
#+end_example
And build/run is then simply
#+begin_example
stack run < input-file.sql | dot -Tpng -o myfile.png
#+end_example
** Usage with SQLAlchemy
If you have all your data in [[https://www.sqlalchemy.org/][SQLAlchemy]] you can let SQLAlchemy output the create table statements. Here’s the code to do that:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment