xorm/xorm
Lunny Xiao 22b4302e05 added single file support 2013-10-14 18:00:01 +08:00
..
templates added genJson for xorm tool 2013-10-14 17:46:04 +08:00
README.md improved xorm toll readme 2013-10-14 17:51:45 +08:00
c++.go reverse tool improved 2013-10-14 15:40:24 +08:00
cmd.go added xorm reverse tool 2013-10-13 23:57:57 +08:00
go.go added genJson for xorm tool 2013-10-14 17:46:04 +08:00
install.sh added xorm reverse tool 2013-10-12 23:16:51 +08:00
lang.go reverse tool improved 2013-10-14 15:40:24 +08:00
reverse.go added single file support 2013-10-14 18:00:01 +08:00
xorm.go added xorm reverse tool 2013-10-13 23:57:57 +08:00

README.md

xorm tools

xorm tools is a set of tools for database operation.

Install

go get github.com/lunny/xorm/xorm

and you should install the depends below:

Reverse

After you installed the tool, you can type

xorm help reverse

to get help

example:

xorm reverse sqite3 test.db templates/goxorm

will generated go files in ./model directory

Template and Config

Now, xorm tool supports go and c++ two languages and have go, goxorm, c++ three of default templates. In template directory, we can put a config file to control how to generating.

lang=go
genJson=1
```

lang must be go or c++ now.
genJson can be 1 or 0, if 1 then the struct will have json tag.

## LICENSE

 BSD License
 [http://creativecommons.org/licenses/BSD/](http://creativecommons.org/licenses/BSD/)