-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from borkdominik/pre
Final changes for Release
- Loading branch information
Showing
6 changed files
with
126 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 borkdominik | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,76 @@ | ||
# bigER VS Code Extension | ||
# bigER - VS Code Extension | ||
|
||
<!-- BADGES --> | ||
<p align="left"> | ||
<a href="https://marketplace.visualstudio.com/items?itemName=BIGModelingTools.erdiagram"> | ||
<img alt="Visual Studio Marketplace Installs" src="https://img.shields.io/visual-studio-marketplace/i/BIGModelingTools.erdiagram?color=blue" height="20"/> | ||
</a> | ||
<a href="https://marketplace.visualstudio.com/items?itemName=BIGModelingTools.erdiagram"> | ||
<img alt="Visual Studio Marketplace Version" src="https://img.shields.io/visual-studio-marketplace/v/BIGModelingTools.erdiagram" height="20"/> | ||
</a> | ||
<a href="https://github.com/borkdominik/bigER"> | ||
<img alt="GitHub Build" src="https://img.shields.io/github/workflow/status/borkdominik/bigER/Build" height="20"/> | ||
</a> | ||
<a href="https://github.com/borkdominik/bigER"> | ||
<img alt="GitHub Stars" src="https://img.shields.io/github/stars/borkdominik/bigER?style=social" height="20"> | ||
</a> | ||
</p> | ||
|
||
Entity-Relationship (ER) modeling tool supporting hybrid, textual- and graphical editing, multiple notations, and SQL code generation. | ||
<!-- DESCRIPTION --> | ||
> [Open-source](https://github.com/borkdominik/bigER) **ER Modeling Tool** for [Visual Studio Code](https://code.visualstudio.com/) supporting *hybrid textual- and graphical editing*, *multiple notations*, and *SQL code generation*. | ||
|
||
<!-- DEMO --> | ||
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/borkdominik/bigER/main/docs/img/tool-screenshot.png" alt="Demo" width="800" /> | ||
<img src="https://raw.githubusercontent.com/borkdominik/bigER/main/docs/img/demo.gif" alt="Demo" width="800" /> | ||
</p> | ||
|
||
**Features:** | ||
|
||
- 📝 **Textual Language** for ER modeling with rich-text editing support through the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/). | ||
- 📊 **Diagram View** that is fully synchronized with the textual model, including automatic layout, multi-notation support and an interactive toolbar. | ||
- 🖨️ **Code Generation** for generating SQL tables from the specified ER model and integrate with existing databases. | ||
<!-- FEATURES --> | ||
## Features | ||
|
||
- **📝 Textual Language** for the specification of ER models in the textual editor. Assistive *validation* and *rich-text editing* support, enabled with the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/), allows to quickly get familiar with the available language constructs. | ||
- 📊 **Diagram View** that is fully synchronized with the textual model and automatically updates on changes. Also offers an interactive toolbar with *graphical editing actions*, *layout mechanisms*, and *multi-notation support*. | ||
- 🖨️ **Code Generation** to *generate SQL tables* out of the specified ER models and integrate with existing databases. | ||
|
||
|
||
<!-- GETTING STARTED --> | ||
## Getting Started | ||
|
||
After installation, new ER models can be created in `.erd` files. Refer to the example below to specify a basic ER Model consisting of two entities and a one-to-many relationship. | ||
**Requirements** | ||
|
||
- VS Code 1.46.0 or above | ||
- Java 11 or above | ||
|
||
**New ER Model** | ||
|
||
After installation, ER models can be created in `.erd` files. Use the `New Sample ER Model` command in the Command Palette or refer to the example below to get started with a basic model. | ||
|
||
```java | ||
erdiagram Example | ||
generate=sql | ||
erdiagram Model | ||
|
||
entity Customer { | ||
id: int key | ||
name: string | ||
} | ||
notation=default | ||
generate=off | ||
|
||
entity Order { | ||
order_number: int key | ||
price: double | ||
entity A { | ||
id key | ||
} | ||
|
||
relationship Places { | ||
Customer[1] -> Order[N] | ||
entity B { | ||
id key | ||
} | ||
relationship Rel { | ||
A -> B | ||
} | ||
``` | ||
|
||
The diagram can be opened through the button in the editor or right-clicking on the .erd file. See the file at `/src-gen/Example.sql` for the generated SQL code. | ||
**Open the Diagram** | ||
|
||
The corresponding *ER Diagram* can be opened by using the button in the editor toolbar, the context menu when right-clicking the file, or by pressing <kbd>Ctrl</kbd>/<kbd>⌘</kbd> + <kbd>O</kbd>. | ||
|
||
|
||
<!-- LEARN MORE --> | ||
## Learn More | ||
|
||
## Learn more | ||
For more information on how to use the tool, see the [bigER Wiki](https://github.com/borkdominik/bigER/wiki/). | ||
|
||
See the [GitHub Repository](https://github.com/borkdominik/bigER) and documentation in the [bigER Wiki](https://github.com/borkdominik/bigER/wiki/) to learn more. | ||
Also check out the [GitHub repository](https://github.com/borkdominik/bigER) and available [examples](https://github.com/borkdominik/bigER/tree/main/examples). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters