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

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

Open
@zjxpcyc

Description

首先,官方文档中 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions