database

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EphemeralDatabase

type EphemeralDatabase struct {
	mongox.Database
}

EphemeralDatabase is a temporary database connection that will be destroyed after close

func NewEphemeral

func NewEphemeral(URI string) (db *EphemeralDatabase, err error)

NewEphemeral creates new mongo connection

func (*EphemeralDatabase) Close

func (e *EphemeralDatabase) Close() error

Close the connection and drop database

Jump to

Keyboard shortcuts

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