mango

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 4

README

Build Status Codecov GoDoc

Mango

Package mango provides support for parsing and executing Cloudant, CouchDB, and PouchDB-style Mango queries against JSON documents.

License

This software is released under the terms of the Apache 2.0 license. See LICENCE.md, or read the full license.

Documentation

Overview

Package mango provides support for parsing and executing Cloudant, CouchDB, and PouchDB-style Mango queries against JSON documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

Selector represents a CouchDB Find query selector. See http://docs.couchdb.org/en/2.0.0/api/database/find.html#find-selectors

func New

func New(data string) (*Selector, error)

New returns a new selector, parsed from data.

func (*Selector) Matches

func (s *Selector) Matches(doc couchDoc) (bool, error)

Matches returns true if the provided doc matches the selector.

func (*Selector) UnmarshalJSON

func (s *Selector) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals a JSON selector as described in the CouchDB documentation. http://docs.couchdb.org/en/2.0.0/api/database/find.html#selector-syntax

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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