Versions in this module Expand all Collapse all v0 v0.1.1 Feb 11, 2024 Changes in this version + const TypeCodeArray + const TypeCodeBinData + const TypeCodeBool + const TypeCodeDate + const TypeCodeDecimal + const TypeCodeDouble + const TypeCodeInt + const TypeCodeLong + const TypeCodeMaxKey + const TypeCodeMinKey + const TypeCodeNull + const TypeCodeNumber + const TypeCodeObject + const TypeCodeObjectID + const TypeCodeRegex + const TypeCodeString + const TypeCodeTimestamp + var ErrInfinity = fmt.Errorf("infinity") + var ErrIntExceeded = fmt.Errorf("int exceeded") + var ErrLongExceededNegative = fmt.Errorf("long exceeded - negative value") + var ErrLongExceededPositive = fmt.Errorf("long exceeded - positive value") + var ErrNotWholeNumber = fmt.Errorf("not a whole number") + var ErrUnexpectedLeftOpType = fmt.Errorf("unexpected left operand type") + var ErrUnexpectedRightOpType = fmt.Errorf("unexpected right operand type") + var ErrUnexpectedType = fmt.Errorf("unexpected type") + func AliasFromType(v any) string + func ExtractParams(doc *types.Document, command string, value any, l *zap.Logger) error + func GetBoolOptionalParam(key string, v any) (bool, error) + func GetValidatedNumberParamWithMinValue(command string, param string, value any, minValue int32) (int64, error) + func GetWholeNumberParam(value any) (int64, error) + func HasSameTypeElements(array *types.Array) bool + func SplitNamespace(ns, argument string) (string, string, error) + type TypeCode int32 + func NewTypeCode(code int32) (TypeCode, error) + func ParseTypeCode(alias string) (TypeCode, error) + func (i TypeCode) String() string v0.1.0 Feb 11, 2024