Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

是不是对 Sqlite 的支持并不是那么好 #52

Open
zjxpcyc opened this issue Jan 11, 2019 · 0 comments
Open

是不是对 Sqlite 的支持并不是那么好 #52

zjxpcyc opened this issue Jan 11, 2019 · 0 comments
Labels

Comments

@zjxpcyc
Copy link

zjxpcyc commented Jan 11, 2019

首先,官方文档中 sqlite: xorm reverse sqite3 test.db templates/goxorm 这个就提示没有 sqite3 驱动,应该是拼写问题。

我的SQL如下:

create table ta_user (
user_id              INTEGER      PRIMARY KEY AUTOINCREMENT,
user_name            VARCHAR(100),
user_org             VARCHAR(300),
user_dept            VARCHAR(300)
);

但是生成的内容如下:

package models

type TaUser struct {
	UserId   int    `xorm:"pk autoincr INTEGER"`
	UserName string `xorm:"VARCHAR(100)"`
	UserOrg  string `xorm:"VARCHAR(300)"`
	UserDept string `xorm:"VARCHAR(300)"`
	string   `xorm:""`
}

最后多了一个 string

@lunny lunny added the bug label Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants