support eq&ne for orm

This commit is contained in:
空见
2015-06-09 10:18:21 +08:00
parent 364cacf659
commit bbb6f31f16
4 changed files with 8 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ var sqliteOperators = map[string]string{
"gte": ">= ?",
"lt": "< ?",
"lte": "<= ?",
"eq": "= ?",
"ne": "!= ?",
"startswith": "LIKE ? ESCAPE '\\'",
"endswith": "LIKE ? ESCAPE '\\'",
"istartswith": "LIKE ? ESCAPE '\\'",