dev-db/erd (haskell)

Search

Install

Install this package:

emerge -a dev-db/erd

Package Information

Description:
erd transforms a plain text description of a relational database schema to a graphical representation of that schema. It is intended that the graph make use of common conventions when depicting entity-relationship diagrams, including modeling the cardinality of relationships between entities. A quick example that transforms an `er` file to a PDF: > $ curl 'https://raw.github.com/BurntSushi/erd/master/examples/simple.er' > simple.er > $ cat simple.er > # Entities are declared in '[' ... ']'. All attributes after the entity header > # up until the end of the file (or the next entity declaration) correspond > # to this entity. > [Person] > *name > height > weight > +birth_location_id > > [Location] > *id > city > state > country > > # Each relationship must be between exactly two entities, which need not > # be distinct. Each entity in the relationship has exactly one of four > # possible cardinalities: > # > # Cardinality Syntax > # 0 or 1 0 > # exactly 1 1 > # 0 or more * > # 1 or more + > Person *--1 Location > $ erd -i simple.er -o simple.pdf The PDF should now contain a graph that looks like this: <<http://burntsushi.net/stuff/erd-example-simple.png>> See the <https://github.com/BurntSushi/erd#readme README.md> file for more examples and instructions on how to write ER files.
Homepage:
https://github.com/BurntSushi/erd
License:
public-domain

Versions

Version EAPI Keywords Slot
0.2.1.0 8 ~amd64 0

Metadata

Description

Maintainers

Raw Metadata XML
<pkgmetadata>
	<maintainer type="project">
		<email>haskell@gentoo.org</email>
		<name>Gentoo Haskell</name>
	</maintainer>
	<longdescription>
		erd transforms a plain text description of a relational database schema to a
		graphical representation of that schema. It is intended that the graph make
		use of common conventions when depicting entity-relationship diagrams,
		including modeling the cardinality of relationships between entities.
		
		A quick example that transforms an `er` file to a PDF:
		
		&gt; $ curl &#39;https://raw.github.com/BurntSushi/erd/master/examples/simple.er&#39; &gt; simple.er
		&gt; $ cat simple.er
		&gt; # Entities are declared in &#39;[&#39; ... &#39;]&#39;. All attributes after the entity header
		&gt; # up until the end of the file (or the next entity declaration) correspond
		&gt; # to this entity.
		&gt; [Person]
		&gt; *name
		&gt; height
		&gt; weight
		&gt; +birth_location_id
		&gt;
		&gt; [Location]
		&gt; *id
		&gt; city
		&gt; state
		&gt; country
		&gt;
		&gt; # Each relationship must be between exactly two entities, which need not
		&gt; # be distinct. Each entity in the relationship has exactly one of four
		&gt; # possible cardinalities:
		&gt; #
		&gt; # Cardinality    Syntax
		&gt; # 0 or 1         0
		&gt; # exactly 1      1
		&gt; # 0 or more      *
		&gt; # 1 or more      +
		&gt; Person *--1 Location
		&gt; $ erd -i simple.er -o simple.pdf
		
		The PDF should now contain a graph that looks like this:
		
		&lt;&lt;http://burntsushi.net/stuff/erd-example-simple.png&gt;&gt;
		
		See the &lt;https://github.com/BurntSushi/erd#readme README.md&gt; file for more
		examples and instructions on how to write ER files.
	</longdescription>
</pkgmetadata>

Lint Warnings

Files

Manifest

Type File Size Versions
DIST erd-0.2.1.0.tar.gz 14585 bytes 0.2.1.0
Unmatched Entries
Type File Size