-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
30 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
# dbml-builder | ||
Generates Pydantic and SQLAlchemy from a DBML file. | ||
|
||
## Usage | ||
|
||
Install using pip: | ||
|
||
``` | ||
pip install dbml_builder | ||
``` | ||
|
||
Generate your ORM and schemas by running: | ||
|
||
``` | ||
model-build generate ./project.dbml src/generated | ||
``` | ||
or call `generate_models` directly in Python code. | ||
|
||
You can check to if the model code is still valid by running: | ||
``` | ||
model-build check v0.9.3 src/generated | ||
``` | ||
or call `verify` directly in Python code. | ||
|
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 +1 @@ | ||
from build import get_dbml_version, verify, generate_validation | ||
from dbml_builder.build import get_dbml_version, verify, generate_models |
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
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,11 +1,12 @@ | ||
[tool.poetry] | ||
name = "dbml-builder" | ||
version = "0.1.0" | ||
version = "0.1.4" | ||
description = "" | ||
authors = ["Five Grant <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{include = "dbml_builder"}] | ||
repository = "https://github.com/jataware/dbml-builder" | ||
license = "MIT" | ||
keywords = ["dbml", "sql"] | ||
|
||
[tool.poetry.urls] | ||
"Bug Tracker" = "https://github.com/jataware/dbml-builder/issues" | ||
|