Update 05.5.md

This commit is contained in:
astaxie
2013-08-15 21:24:55 +08:00
parent c5ddbacd37
commit d469763de3

View File

@@ -94,7 +94,7 @@ beedb接口提供了另外一种插入的方式map数据插入。
add2["departname"] = "cloud develop2"
add2["created"] = "2012-12-02"
addslice =append(addslice, add, add2)
orm.SetTable("userinfo").Insert(addslice)
orm.SetTable("userinfo").InsertBatch(addslice)
上面的操作方式有点类似链式查询熟悉jquery的同学应该会觉得很亲切每次调用的method都会返回原orm对象以便可以继续调用该对象上的其他method。