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

@@ -30,6 +30,8 @@ var mysqlOperators = map[string]string{
"gte": ">= ?",
"lt": "< ?",
"lte": "<= ?",
"eq": "= ?",
"ne": "!= ?",
"startswith": "LIKE BINARY ?",
"endswith": "LIKE BINARY ?",
"istartswith": "LIKE ?",