Comments (7)
1.请问使用的数据库类型?
2.结构体和新增的列信息可否提供?
from xorm.
数据库: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.
难道是缓存?有没有重启过应用?
from xorm.
Sync函数没有缓存,每次都是重新从数据库查询。
在 2014年3月1日,22:15,S.W.H [email protected] 写道:
难道是缓存?有没有重启过应用?
—
Reply to this email directly or view it on GitHub.
from xorm.
重启了
发自我的 iPhone
在 2014年3月1日,下午10:15,"S.W.H" [email protected] 写道:
难道是缓存?有没有重启过应用?
—
Reply to this email directly or view it on GitHub.
from xorm.
尝试下使用engine.Sync2试一下?
from xorm.
这个bug应该已经被解决了。
from xorm.
Related Issues (20)
- sync2不支持同步mysql中MEMORY引擎的数据表V0.7.0
- Invalid object name 'SYS.INDEXES' on SQL Server case sensitive collate HOT 1
- CTE (Common Table Expression) with aliases support
- 事务无法执行afterClosure HOT 1
- go mod download get stuck at xorm.io/core HOT 2
- lost table name with session when insert multiple Slice
- xorm mock CURD HOT 2
- [xorm.NewEngine] I gave wrong 'dataSourceName' but can't panic the error HOT 2
- 文档的问题 HOT 1
- SQLite to mssql dump
- undefined: builder.StringBuilder HOT 3
- Oracle Dialect Quote Brackets HOT 1
- Mysql split-table HOT 2
- driver.Valuer not checked on Insert() HOT 1
- Add support for vertica
- Avoid varargs for batch operations HOT 1
- go fmt go file warning HOT 1
- how to use force index when construct session HOT 2
- mysql5.7版本中json类型的数据插入空数组,数据为null
- how to open session autoclose flag with xorm.engine HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xorm.