document

package
Version: v0.0.0-...-7d43bac Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package document provides support for nosql document database access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	Context() DbContext

	Insert(doc interface{}) error
	Update(selector interface{}, doc interface{}) error
	Remove(doc interface{}) error

	Find(selector interface{}) ([]interface{}, error)
}

Collection represents nosql document database collection.

type DbContext

type DbContext interface {
	GetCollection(name string) Collection

	system.Disposer
}

DbContext represents document database access mechanism. It is used to access collections.

type Document

type Document struct{}

Document is object which represents data stored in nosql document database.

Source Files

Directories

Path Synopsis
Package mgo provides support for nosql document database access using mgo library.
Package mgo provides support for nosql document database access using mgo library.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL