Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EphemeralDatabase ¶
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
Click to show internal directories.
Click to hide internal directories.