GithubHelp home page GithubHelp logo

0 or 1 relation fails about erd HOT 3 CLOSED

burntsushi avatar burntsushi commented on August 16, 2024
0 or 1 relation fails

from erd.

Comments (3)

rrooij avatar rrooij commented on August 16, 2024 1

Person *--0 Location

is now:

Person *--? Location

from erd.

BurntSushi avatar BurntSushi commented on August 16, 2024

Please include a full reproducible example of the problem...

from erd.

adamist521 avatar adamist521 commented on August 16, 2024

Sorry.
Just edited 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
Person *--0 Location

Executing erd gives following error.

.stack-work/install/x86_64-osx/lts-8.12/8.0.2/bin/erd -i examples/simple.er -o examples/simple.pdf
"examples/simple.er" (line 26, column 11):
unexpected "0"
expecting relationship

from erd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.