wheredoc

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WhereDocument

func WhereDocument(operation WhereDocumentOperation) (map[string]interface{}, error)

Types

type Builder

type Builder struct {
	WhereClause map[string]interface{}
	// contains filtered or unexported fields
}

func NewWhereDocumentBuilder

func NewWhereDocumentBuilder() *Builder

func (*Builder) And

func (w *Builder) And(builders ...*Builder) *Builder

func (*Builder) Build

func (w *Builder) Build() (map[string]interface{}, error)

func (*Builder) Contains

func (w *Builder) Contains(value interface{}) *Builder

func (*Builder) NotContains

func (w *Builder) NotContains(value interface{}) *Builder

func (*Builder) Or

func (w *Builder) Or(builders ...*Builder) *Builder

type InvalidWhereDocumentValueError

type InvalidWhereDocumentValueError struct {
	Value interface{}
}

func (*InvalidWhereDocumentValueError) Error

type WhereDocumentOperation

type WhereDocumentOperation func(builder *Builder) error

func Contains

func Contains(value interface{}) WhereDocumentOperation

func NotContains

func NotContains(value interface{}) WhereDocumentOperation

Jump to

Keyboard shortcuts

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