nano

package module
v0.0.0-...-bb30cae Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2013 License: MIT Imports: 7 Imported by: 0

README

Nano.go

A couchdb driver loosely based on nano.

Status

This is still under development.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Couch

type Couch struct {
	Db Database
	// contains filtered or unexported fields
}

func Setup

func Setup(url string) (couch Couch)

func (*Couch) Alldbs

func (db *Couch) Alldbs() (dbs []string)

func (*Couch) CreateDb

func (couch *Couch) CreateDb(name string) (reply map[string]bool, err error)

func (*Couch) DestroyDb

func (db *Couch) DestroyDb(name string) (reply map[string]bool, err error)

func (*Couch) UseDb

func (c *Couch) UseDb(name string) (db Database, err error)

func (*Couch) Uuids

func (c *Couch) Uuids(count int) (uuids []string)

func (*Couch) Version

func (couch *Couch) Version() (info map[string]string)

type Database

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

func (*Database) Get

func (db *Database) Get(name string) (doc map[string]interface{}, err error)

func (*Database) GetFor

func (db *Database) GetFor(name string, doc interface{}) (interface{}, error)

func (*Database) View

func (db *Database) View(ddoc string, view string, params *url.Values, response interface{}) (err error)

func (*Database) ViewJson

func (db *Database) ViewJson(ddoc string, view string, params *url.Values) (resp *simplejson.Json, err error)

Jump to

Keyboard shortcuts

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