repository

package
v0.0.0-...-5be7bc9 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete[A any](id primitive.ObjectID) (*int64, error)

func DeleteMany

func DeleteMany[A any](filter any, opts ...*options.DeleteOptions) (*int64, error)

func DeleteManyWithDatabase

func DeleteManyWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)

func DeleteOne

func DeleteOne[A any](filter any, opts ...*options.DeleteOptions) (*int64, error)

func DeleteOneWithDatabase

func DeleteOneWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.DeleteOptions) (*int64, error)

func Find

func Find[A any](filter any, opts ...*options.FindOptions) ([]A, error)

func FindOne

func FindOne[A any](filter any, opts ...*options.FindOneOptions) (*A, error)

func FindOneAndUpdate

func FindOneAndUpdate[A any](filter any, update any, opts ...*options.FindOneAndUpdateOptions) (*A, error)

func FindOneAndUpdateWithSerializer

func FindOneAndUpdateWithSerializer[A any, S any](filter any, update any, opts ...*options.FindOneAndUpdateOptions) (*S, error)

func FindOneWithDatabase

func FindOneWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.FindOneOptions) (*A, error)

func FindOneWithSerializer

func FindOneWithSerializer[A any, S any](filter any, opts ...*options.FindOneOptions) (*S, error)

func FindWithDatabase

func FindWithDatabase[A any](db *database.GoodmDatabase, filter any, opts ...*options.FindOptions) ([]A, error)

func FindWithSerializer

func FindWithSerializer[A any, S any](filter any, opts ...*options.FindOptions) ([]S, error)

func Get

func Get[A any](id primitive.ObjectID) (*A, error)

func GetWithSerializer

func GetWithSerializer[A any, S any](id primitive.ObjectID) (*S, error)

func Insert

func Insert[A any](model any) (*mongo.InsertOneResult, error)

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 ObjectIdConvert

func ObjectIdConvert(id any) (*primitive.ObjectID, 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.

Jump to

Keyboard shortcuts

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