<commit_before># Entity-Relationship-Diagramm-Erzeuger
A simple tool to generate Entity-Relationship-Diagrams based on text input or directly from a PostgreSQL database. The format of the text schema is inspired and based on ["erd" by <NAME>](https://github.com/BurntSushi/erd).

## Install
Make sure you have [Graphviz](http://graphviz.org/) installed and available in your `$PATH`.  Install the gem with `gem install erde` or add it to your `Gemfile`.

## CLI Usage
~~~txt
bin/erde file docs/schema.txt docs/schema.png
~~~

## Text Schema Format
~~~txt
[identities]
id<commit_msg>Add README entry for database usage<commit_after># Entity-Relationship-Diagramm-Erzeuger
A simple tool to generate Entity-Relationship-Diagrams based on text input or directly from a PostgreSQL database. The format of the text schema is inspired and based on ["erd" by <NAME>](https://github.com/BurntSushi/erd).

## Install
Make sure you have [Graphviz](http://graphviz.org/) installed and available in your `$PATH`.  Install the gem with `gem install erde` or add it to your `Gemfile`.

## CLI Usage
~~~txt
bin/erde file docs/schema.txt docs/schema.png
~~~

~~~txt
bin/erde database postgres://user:password@localhost/your_database docs/schema.png
~~~

## Text Schema Format
~~~txt
[identities]
id
{'fraction_non_alphanumeric': 0.1131928181108509, 'fraction_numerical': 0.0, 'mean_word_length': 4.853881278538813, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3329741', 'n_tokens_mistral': 402, 'n_tokens_neox': 385, 'n_words': 149}