mongodb

package
v0.0.0-...-a84b5dd Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(filters ...*bson.D) *bson.D

Types

type Client

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

func New

func New(ctx context.Context, uri string, database string) (*Client, error)

func (*Client) Close

func (c *Client) Close(ctx context.Context) error

func (*Client) FindInBBox

func (c *Client) FindInBBox(ctx context.Context, collection string, bound orb.Bound, filter *bson.D) ([]*geojson.Feature, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, collection string, filter bson.D, doc any) error

func (*Client) Inc

func (c *Client) Inc(ctx context.Context, collection string, filter bson.D, key string) error

func (*Client) Insert

func (c *Client) Insert(ctx context.Context, collection string, features []*geojson.Feature) error

func (*Client) Put

func (c *Client) Put(ctx context.Context, collection string, doc any) error

Jump to

Keyboard shortcuts

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