Giter Site home page Giter Site logo

sync问题 about xorm HOT 7 CLOSED

go-xorm avatar go-xorm commented on August 18, 2024
sync问题

from xorm.

Comments (7)

lunny avatar lunny commented on August 18, 2024

1.请问使用的数据库类型?
2.结构体和新增的列信息可否提供?

from xorm.

yaotian avatar yaotian commented on August 18, 2024

数据库:sqlite

结构体
type Picture struct {
Id int64
Url string xorm:"unique" //image's url
Title string
Description string
Created time.Time xorm:"created"
ILike int
PageView int
From_url string
Pre_url string xorm:"unique" //pre view image's url
Uid int64
}

报错的列表
Pre_url string xorm:"unique"

我感觉不是个别列出错。好像是如果手工去增加列,再去sync会出错。

2014-03-01 20:34 GMT+08:00 Lunny Xiao [email protected]:

1.请问使用的数据库类型?
2.结构体和新增的列信息可否提供?


Reply to this email directly or view it on GitHubhttps://github.com/lunny/xorm/issues/61#issuecomment-36423613
.

from xorm.

admpub avatar admpub commented on August 18, 2024

难道是缓存?有没有重启过应用?

from xorm.

lunny avatar lunny commented on August 18, 2024

Sync函数没有缓存,每次都是重新从数据库查询。

在 2014年3月1日,22:15,S.W.H [email protected] 写道:

难道是缓存?有没有重启过应用?


Reply to this email directly or view it on GitHub.

from xorm.

yaotian avatar yaotian commented on August 18, 2024

重启了

发自我的 iPhone

在 2014年3月1日,下午10:15,"S.W.H" [email protected] 写道:

难道是缓存?有没有重启过应用?


Reply to this email directly or view it on GitHub.

from xorm.

lunny avatar lunny commented on August 18, 2024

尝试下使用engine.Sync2试一下?

from xorm.

lunny avatar lunny commented on August 18, 2024

这个bug应该已经被解决了。

from xorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.