beego开发文档-03121629获取已连接的 *sql.DB 12. ORM增加 ResetModelCache 重置已注册缓存的模型struct,方便写测试 13. ORM支持 between 14. ORM支持 sql.Null* 类型 15. 修改 auto_now_add,用户有自定义值时跳过自动设置时间 发布时间: 2014-03-12 beego 1.1.0 这个版本增加了一些新特性,修复了一些bug 新特性 'slene' // 使用 = 匹配,大小写是否敏感取决于数据表使用的 collation qs.Filter("profile_id", nil) // WHERE profile_id IS NULL iexact qs.Filter("name__iexact", "slene") // WHERE name LIKE 'slene' // 大小写不敏感,匹配任意 'Slene' 'sLENE' true) qs.Filter("profile_id__isnull", true) // WHERE profile_id IS NULL qs.Filter("profile__isnull", false) // WHERE profile_id IS NOT NULL 高级查询接口使用 QuerySeter 是高级查询使用的接口,我们来熟悉下他的接口方法 type QuerySeter interface1 魔豆 | 248 页 | 2.61 MB | 3 年前3
共 1 条
- 1










