NOTE
xorm
These notes record XORM configuration and commands, using configuration files and examples to show database integration.
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
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub