package
0.1.1
Repository: https://github.com/zaporter/go-update-mongo.git
Documentation: pkg.go.dev

# Functions

AliasFromType returns BSON type alias name for given value.
ExtractParams fill passed value structure with parameters from the document.
GetBoolOptionalParam returns bool value of v.
GetValidatedNumberParamWithMinValue converts and validates a value into a number.
GetWholeNumberParam checks if the given value is int32, int64, or float64 containing a whole number, such as used in the limit, $size, etc.
HasSameTypeElements returns true if types.Array elements has the same type.
NewTypeCode returns TypeCode and error by given code.
ParseTypeCode returns TypeCode and error by given type code alias.
SplitNamespace returns the database and collection name from a given namespace in format "database.collection".

# Constants

# Variables

ErrInfinity is returned when an infinity value is given.
ErrIntExceeded is returned when an int value is given that exceeds the maximum value.
ErrLongExceededNegative is returned when a negative long value is given that exceeds the minimum value.
ErrLongExceededPositive is returned when a positive long value is given that exceeds the maximum value.
ErrNotWholeNumber is returned when a non-whole number is given.
ErrUnexpectedLeftOpType is returned when an unexpected left operand type is given.
ErrUnexpectedRightOpType is returned when an unexpected right operand type is given.
ErrUnexpectedType is returned when an unexpected type is given.

# Type aliases

TypeCode represents BSON type codes.