ZhangZhihui's Blog  

 

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

 

posted on 2023-12-23 11:17  ZhangZhihuiAAA  阅读(4)  评论(0编辑  收藏  举报