go-xorm / manual-zh-cn Goto Github PK
View Code? Open in Web Editor NEWXorm操作指南中文版(gitbook格式)Move to https://gitea.com/xorm/manual-zh-CN
Xorm操作指南中文版(gitbook格式)Move to https://gitea.com/xorm/manual-zh-CN
chapter-03/5.dumpimport.md 写到:可以调用 engine.Import(w io.Writer)
,但在代码中 Import 的参数是io.Reader:
func (engine *Engine) Import(r io.Reader) ([]sql.Result, error)
chapter-02/4.columns.md 文件中“当前支持30多种字段类型,详情参见 字段类型 (https://github.com/go-xorm/xorm/blob/master/docs/COLUMNTYPE.md)” 这一段中的链接失效了,404错误。
插入同一个表的多条数据,此时如果数据库支持批量插入,那么会进行批量插入,但是这样每条记录就无法被自动赋予id值。如果数据库不支持批量插入,那么就会一条一条插入。
users := make([]User, 1)
users[0].Name = "name0"
...
affected, err := engine.Insert(&users)
在 mysql 下,经过测试,开启 engine 中 engine.ShowSQL(),发现实现是通过
insert xxxx;
insert xxxx;
insert xxxx;
语句完成插入,而并非MySQL自带的 ,insert <tablename> values (xxxxx) (xxxx)
语法。
此处是在 MySQL 上实现有误还是说明有误?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.