Documentation ¶
Overview ¶
Package utils provides database utility function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseMongoClient ¶
CloseMongoClient closes a MongoDB connection.
func ClosePostgreClient ¶
ClosePostgreClient closes a PostgreSQL connection.
func NewMongoClient ¶
NewMongoClient connects to a MongoDB database and returns the connection object along with the context.
func NewPostgreClient ¶
NewPostgreClient connects to a PostgreSQL database and returns the connection object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.