DBML syntax highlighting and code snippets
Database Markup Language (DBML) syntax highlighting and code snippets for Atom Text Editor.
This project was made based on Visual Studio Code extension - vscode-dbml
Syntax Highlighting
Syntax highlighting is enabled for files with the .dbml
extension.
Snippets
Snippets are provided for quickly creating tables, enums, and references. To use a snippet, begin typing any of the following keys.
-
Definition:
project
: Create a project descriptiontable
: Create a new tabletableindex
: Create a new table with an auto-incrementing int id as the primary keytablegr
: Create a table groupindex
: Create a new indexenum
: Create a new enumcolumn
: Create a new column
-
Relationship:
oto
: Create a one-to-one referenceotm
: Create a one-to-many referencemto
: Create a many-to-one referencemtm
: Create a many-to-many join table
-
Note:
projectnote
: Create a project notetablenote
: Create a table notecolumnnote
: Create a column note
-
Other:
defval
: Create a default value
Issues
If you find an error or bug, please create an issue.
Contributing
If you want to add to this project, feel free to fork the repository and submit a pull request.