ZIMP - dbml

发布时间 2023-12-23 11:19:02作者: ZhangZhihuiAAA

 

zzh@ZZHPC:/zdata/Github/zimplebank$ npm install -g @dbml/cli

 

zzh@ZZHPC:/zdata/Github/zimplebank$ dbml2sql --help
Usage: dbml2sql [options] <files...>

Options:
  -V, --version              output the version number
  --mysql                    
  --postgres                 
  --mssql                    
  -o, --out-file <pathspec>  compile all input files into a single files
  -h, --help                 output usage information

 

zzh@ZZHPC:/zdata/Github/zimplebank$ dbml2sql --postgres -o doc/schema.sql doc/db.dbml
  ✔ Generated SQL dump file (PostgreSQL): schema.sql