NOTE

xorm

1. reverse tool 1.1. Installation 1.2. Usage Configuration file tao.yml Command 2. References

Go1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. reverse tool

1.1. Installation

go get xorm.io/reverse
go get github.com/go-sql-driver/mysql

1.2. Usage

  • Configuration file tao.yml
kind: reverse
name: mydb
source:
  database: mysql
  conn_str: 'root:<PASSWORD>@(127.0.0.1:3306)/tao?charset=utf8'
targets:
  - type: codes
    language: golang
    output_dir: ./
  • Command
cd models
reverse -f tao.yml

2. References

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub