database

package
v1.0.109 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Host     string
	Database string
	User     string
	Password string
}

func (Connection) String

func (c Connection) String() (s string)

type Source

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

func NewDatabase added in v1.0.105

func NewDatabase(c Connection) (*Source, error)

func (*Source) Clone

func (s *Source) Clone() (*Source, error)

func (*Source) Close

func (s *Source) Close()

func (*Source) Collection

func (s *Source) Collection(name string) *mgo.Collection

func (*Source) Drop added in v1.0.105

func (s *Source) Drop() error

func (*Source) Open

func (s *Source) Open(conn Connection) error

Jump to

Keyboard shortcuts

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