Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cb89cd57
authored
2015-06-13 10:54:47 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #1201 from kongjian/develop
support eq&ne for orm
2 parents
6b777f0c
bbb6f31f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
orm/db.go
orm/db_mysql.go
orm/db_postgres.go
orm/db_sqlite.go
orm/db.go
View file @
cb89cd5
...
...
@@ -44,6 +44,8 @@ var (
"gte"
:
true
,
"lt"
:
true
,
"lte"
:
true
,
"eq"
:
true
,
"nq"
:
true
,
"startswith"
:
true
,
"endswith"
:
true
,
"istartswith"
:
true
,
...
...
orm/db_mysql.go
View file @
cb89cd5
...
...
@@ -30,6 +30,8 @@ var mysqlOperators = map[string]string{
"gte"
:
">= ?"
,
"lt"
:
"< ?"
,
"lte"
:
"<= ?"
,
"eq"
:
"= ?"
,
"ne"
:
"!= ?"
,
"startswith"
:
"LIKE BINARY ?"
,
"endswith"
:
"LIKE BINARY ?"
,
"istartswith"
:
"LIKE ?"
,
...
...
orm/db_postgres.go
View file @
cb89cd5
...
...
@@ -29,6 +29,8 @@ var postgresOperators = map[string]string{
"gte"
:
">= ?"
,
"lt"
:
"< ?"
,
"lte"
:
"<= ?"
,
"eq"
:
"= ?"
,
"ne"
:
"!= ?"
,
"startswith"
:
"LIKE ?"
,
"endswith"
:
"LIKE ?"
,
"istartswith"
:
"LIKE UPPER(?)"
,
...
...
orm/db_sqlite.go
View file @
cb89cd5
...
...
@@ -29,6 +29,8 @@ var sqliteOperators = map[string]string{
"gte"
:
">= ?"
,
"lt"
:
"< ?"
,
"lte"
:
"<= ?"
,
"eq"
:
"= ?"
,
"ne"
:
"!= ?"
,
"startswith"
:
"LIKE ? ESCAPE '
\\
'"
,
"endswith"
:
"LIKE ? ESCAPE '
\\
'"
,
"istartswith"
:
"LIKE ? ESCAPE '
\\
'"
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment