expandInDBCommon

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package expandInDBCommon contains common functions for expandInDBDepth and expandInDBSeq packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessScalarField

func ProcessScalarField(fullName interface{}, field FieldVars, options *expand.Options) bson.M

ProcessScalarField generates operations that process scalar field in aggregation pipeline.

func ProcessStringField

func ProcessStringField(fullName interface{}, field FieldVars, options *expand.Options) bson.M

ProcessStringField generates operations that process string field in aggregation pipeline.

Types

type FieldVars

type FieldVars struct {
	Name  interface{}
	Type  interface{}
	Value interface{}
	Level uint
}

FieldVars is an auxiliary structure that serves to build aggregation in the database.

Jump to

Keyboard shortcuts

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