mongo

package
v0.0.0-...-449a115 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewConnection

func NewConnection(uri string) *DB

func (*DB) ListCollections

func (mon *DB) ListCollections(db string) ([]string, error)

func (*DB) ListDatabaseNames

func (mon *DB) ListDatabaseNames() ([]string, error)

func (*DB) ListUsers

func (mon *DB) ListUsers(db string) ([]string, error)

func (*DB) ListViews

func (mon *DB) ListViews(db string) ([]string, error)

func (*DB) RunCommand

func (mon *DB) RunCommand(database string, command string) string

Jump to

Keyboard shortcuts

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