Documentation ¶
Index ¶
- func Delete[A any](id primitive.ObjectID) (*int64, error)
- func DeleteMany[A any](filter any, opts ...*options.DeleteOptions) (*int64, error)
- func DeleteManyWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
- func DeleteOne[A any](filter any, opts ...*options.DeleteOptions) (*int64, error)
- func DeleteOneWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
- func Find[A any](filter any, opts ...*options.FindOptions) ([]A, error)
- func FindOne[A any](filter any, opts ...*options.FindOneOptions) (*A, error)
- func FindOneAndUpdate[A any](filter any, update any, opts ...*options.FindOneAndUpdateOptions) (*A, error)
- func FindOneAndUpdateWithSerializer[A any, S any](filter any, update any, opts ...*options.FindOneAndUpdateOptions) (*S, error)
- func FindOneWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.FindOneOptions) (*A, error)
- func FindOneWithSerializer[A any, S any](filter any, opts ...*options.FindOneOptions) (*S, error)
- func FindWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.FindOptions) ([]A, error)
- func FindWithSerializer[A any, S any](filter any, opts ...*options.FindOptions) ([]S, error)
- func Get[A any](id primitive.ObjectID) (*A, error)
- func GetWithSerializer[A any, S any](id primitive.ObjectID) (*S, error)
- func Insert[A any](model any) (*mongo.InsertOneResult, error)
- func InsertMany[A any](models []A) (*mongo.InsertManyResult, error)
- func InsertManyWithDatabase[A any](db *database.GoodmDatabase, models []A) (*mongo.InsertManyResult, error)
- func InsertWithDatabase[A any](db *database.GoodmDatabase, model any) (*mongo.InsertOneResult, error)
- func ObjectIdConvert(id any) (*primitive.ObjectID, error)
- func TestDeleteManyPrivate[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
- func TestDeleteOnePrivate[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
- func TestFindOnePrivate[A any, S any](db *database.GoodmDatabase, filter any, opts ...*options.FindOneOptions) (*S, error)
- func TestFindPrivate[A any, S any](db *database.GoodmDatabase, filter any, opts ...*options.FindOptions) ([]S, error)
- func TestInsertManyPrivate[A any](db *database.GoodmDatabase, models []any) (*mongo.InsertManyResult, error)
- func TestInsertOnePrivate[A any](db *database.GoodmDatabase, model any) (*mongo.InsertOneResult, error)
- func TestSerializeSingleResultPrivate[S any](singleResult *mongo.SingleResult) (*S, error)
- func TestUpdateByIDPrivate[A any, S any](db *database.GoodmDatabase, id primitive.ObjectID, update any, ...) (*mongo.UpdateResult, error)
- func TestUpdateManyPrivate[A any, S any](db *database.GoodmDatabase, filter any, update any, ...) (*mongo.UpdateResult, error)
- func TestUpdateOnePrivate[A any, S any](db *database.GoodmDatabase, filter any, update any, ...) (*mongo.UpdateResult, error)
- func UpdateByID[A any](id primitive.ObjectID, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func UpdateMany[A any](filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func UpdateOne[A any](filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMany ¶
func DeleteManyWithDatabase ¶
func DeleteManyWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
func DeleteOneWithDatabase ¶
func DeleteOneWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
func FindOneAndUpdate ¶
func FindOneWithDatabase ¶
func FindOneWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.FindOneOptions) (*A, error)
func FindOneWithSerializer ¶
func FindWithDatabase ¶
func FindWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.FindOptions) ([]A, error)
func FindWithSerializer ¶
func InsertMany ¶
func InsertMany[A any](models []A) (*mongo.InsertManyResult, error)
func InsertManyWithDatabase ¶
func InsertManyWithDatabase[A any](db *database.GoodmDatabase, models []A) (*mongo.InsertManyResult, error)
func InsertWithDatabase ¶
func InsertWithDatabase[A any](db *database.GoodmDatabase, model any) (*mongo.InsertOneResult, error)
func TestDeleteManyPrivate ¶
func TestDeleteManyPrivate[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
func TestDeleteOnePrivate ¶
func TestDeleteOnePrivate[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)
func TestFindOnePrivate ¶
func TestFindOnePrivate[A any, S any](db *database.GoodmDatabase, filter any, opts ...*options.FindOneOptions) (*S, error)
func TestFindPrivate ¶
func TestFindPrivate[A any, S any](db *database.GoodmDatabase, filter any, opts ...*options.FindOptions) ([]S, error)
func TestInsertManyPrivate ¶
func TestInsertManyPrivate[A any](db *database.GoodmDatabase, models []any) (*mongo.InsertManyResult, error)
func TestInsertOnePrivate ¶
func TestInsertOnePrivate[A any](db *database.GoodmDatabase, model any) (*mongo.InsertOneResult, error)
func TestSerializeSingleResultPrivate ¶
func TestSerializeSingleResultPrivate[S any](singleResult *mongo.SingleResult) (*S, error)
func TestUpdateByIDPrivate ¶
func TestUpdateByIDPrivate[A any, S any](db *database.GoodmDatabase, id primitive.ObjectID, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
func TestUpdateManyPrivate ¶
func TestUpdateManyPrivate[A any, S any](db *database.GoodmDatabase, filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
func TestUpdateOnePrivate ¶
func TestUpdateOnePrivate[A any, S any](db *database.GoodmDatabase, filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
func UpdateByID ¶
func UpdateByID[A any](id primitive.ObjectID, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
func UpdateMany ¶
func UpdateMany[A any](filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
func UpdateOne ¶
func UpdateOne[A any](filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.