Skip to content

Commit

Permalink
add collation strength const definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-ywliu committed Aug 23, 2023
1 parent e726373 commit e511c4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mongoapi/mongoapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ var (
dbName string
)

const (
COLLATION_STRENGTH_IGNORE_DIACRITICS_AND_CASE int = iota + 1
COLLATION_STRENGTH_IGNORE_CASE
COLLATION_STRENGTH_DEFAULT
)

func SetMongoDB(setdbName string, url string) error {
if Client != nil {
return nil
Expand Down

0 comments on commit e511c4f

Please sign in to comment.