Comments (4)
It's a good idea with a flag to activate it.
from eralchemy.
Is this the reason why currently every foreign key is marked (0, 1) and never (1, 1)?
from eralchemy.
This is the current schema of https://github.com/globaleaks/GlobaLeaks where are visible relations (0, 1) that should be (1, 1) as a NOT NULL is present
from eralchemy.
In sqla.py
it looks like the relationship types are baked in from foreign key relationships:
def relation_to_intermediary(fk):
"""Transform an SQLAlchemy ForeignKey object to it's intermediary representation. """
return Relation(
right_col=format_name(fk.parent.table.fullname),
left_col=format_name(fk._column_tokens[1]),
right_cardinality='?',
left_cardinality='*',
)
I don't see anywhere it's possible to set the full range of types *: {0..N}
, ?: {0,1}
, +: {1,N}
, 1: {1}
Presumably, if we have a primary key defined we can assume it's UNIQUE
(and NOT NULL
?) in absence of those being declared explicitly?
from eralchemy.
Related Issues (20)
- Proposition: allow multiple output formats
- Request: Add eralchemy to nixpkgs HOT 2
- Specify multiple schemas
- When i pass a schema to the declaritive_base it breaks the whole drawing
- Allow the dot file's graph beginning to be customized HOT 2
- Fresh Homebrew can't find `psycopg2` HOT 2
- fix versionining, please release 1.5+ HOT 1
- Missing relationships when using `Base` HOT 2
- support for sql server
- Support for defining the color of tables
- KeyError: '_data' HOT 12
- Entities do not align HOT 1
- Access to push to new branches / create PRs HOT 2
- Support mermaid markdown HOT 1
- Add version info of required compatible Graphviz on Windows HOT 1
- Upgrading SQLAlchemy can break ERAlchemy HOT 1
- Getting CI back on track
- [eralchemy2] Fork of ERAlchemy for further development HOT 3
- in newer version of sqlalchemy table.c._data is gone HOT 1
- Postgres custom `ENUM` type is rendered as `VARCHAR`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eralchemy.