Documentation ¶
Index ¶
- func DeleteOneByID(dbName, collName string, client *mongo.Client, objID string) (bool, error)
- func FindOneByID(dbName, collName string, client *mongo.Client, objID string) (bool, error)
- func InitMG(dbConStr string) error
- func InsertOne(dbName, collName string, client *mongo.Client, data DP) (bool, error)
- func UpdateOne(dbName, collName string, client *mongo.Client, data DP, filter bson.M) (bool, error)
- func UpdateOneByID(dbName, collName string, client *mongo.Client, data DP, objID string) (bool, error)
- type DP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOneByID ¶
DeleteOneByID delete a single row filetered MongoDB object ID from a MongoDB collection.
func FindOneByID ¶
FindOneByID find a single row filtered by MongoDB object ID from a collection.
Types ¶
Click to show internal directories.
Click to hide internal directories.