mongo

package
v0.0.0-...-2946602 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CancelError error = errors.New("this operation is cancel!")

CancelError 撤销操作

Functions

func TransMysqlOperatorSymbol

func TransMysqlOperatorSymbol(symbol OperatorSymbol, column string, value interface{}) bson.E

Types

type OperatorSymbol

type OperatorSymbol string
const (
	EQUAL              OperatorSymbol = "$eq"
	NOT_EQUAL          OperatorSymbol = "$ne"
	EXISTS             OperatorSymbol = "$exists"
	LIKE               OperatorSymbol = "$regex"
	IN                 OperatorSymbol = "$in"
	NOT_IN             OperatorSymbol = "$nin"
	GREATER_THEN       OperatorSymbol = "$gt"
	GREATER_THEN_EQUAL OperatorSymbol = "$gte"
	LESS_THAN          OperatorSymbol = "$lt"
	LESS_THAN_EQUAL    OperatorSymbol = "$lte"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL