https://github.com/alonelucky/gen
gorm dbml gen
https://github.com/alonelucky/gen
dbml gen gorm
Last synced: 6 months ago
JSON representation
gorm dbml gen
- Host: GitHub
- URL: https://github.com/alonelucky/gen
- Owner: alonelucky
- License: mit
- Created: 2024-09-12T07:58:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-12T08:37:07.000Z (about 1 year ago)
- Last Synced: 2025-02-08T09:13:25.953Z (8 months ago)
- Topics: dbml, gen, gorm
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# GORM DBML Gen
[dbml](https://dbml.dbdiagram.io/home/)
DBML (Database Markup Language) is an open-source DSL language designed to define and document database schemas and structures. It is designed to be simple, consistent and highly-readable.
## Install
```
go install github.com/alonelucky/gen/cmd/dbmlgen@latest
```## Features
1. Easily record data changes with code.## Usage of hmq:
```
Usage of dbmlgen
-dbml string
database mark languge
-null
generate model global configuration
-output string
curd and model output dir (default "./gen/curd")
-type string
specify data type mapping relationship (default "datetime=string"), exp "coltyp1=int,coltyp2=bool..."
```