cmd icon indicating copy to clipboard operation
cmd copied to clipboard

Command line tools for database operation written by Go, moved to https://gitea.com/xorm/cmd

Results 29 cmd issues
Sort by recently updated
recently updated
newest added

json field default Initial letter lowercase and hump add generator column name (can Configurable)

D:\gopath\src\github.com\go-xorm\cmd\xorm>go build # errors compile: version "go1.10.3" does not match go tool version "go1.12.4" # internal/race compile: version "go1.10.3" does not match go tool version "go1.12.4" # runtime/internal/atomic flag provided...

xorm reverse 生成的struct的字段如何按照数据表字段顺序进行排序?

enhancement

I'm using reverse function on MSSQL database, and get error on NCHAR ``` >xorm reverse mssql "server=XXX;user id=XXX;password=XXX;database=XXX" templates/goxorm 2018/05/04 14:58:29 [Error] reverse.go:178 Unknown colType NCHAR for XXTanble - XXColumn...

enhancement

windows下运行提示xorm不是哪部或外部命令

question

templates\goxorm下的config 希望支持一个是否加上原字段注释的开关。把原字段的注释生成出来,多爽。 功能改应该不难,希望能接受此建议 对于go.go 修改tag方法 增加 ...+ "//"+ col.Comment 但发现postgres的 col.Comment 的值是空的

reverse no support for mysql unsigned type to go unsigned

enhancement
blocked

1.运行“xorm reverse” 生成struct代码时报错: [Error] reverse.go:306 1:22: expected statement, found '

首先,官方文档中 `sqlite: xorm reverse sqite3 test.db templates/goxorm` 这个就提示没有 `sqite3` 驱动,应该是拼写问题。 我的SQL如下: ```sql create table ta_user ( user_id INTEGER PRIMARY KEY AUTOINCREMENT, user_name VARCHAR(100), user_org VARCHAR(300), user_dept VARCHAR(300) ); ``` 但是生成的内容如下:...

bug

For the columns as follow in MySql : ``` `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, ``` the reverse tool will generate...