Categorygithub.com/go-odm/godm
modulepackage
0.0.6
Repository: https://github.com/go-odm/godm.git
Documentation: pkg.go.dev

# Functions

CollName returns a model's collection name.
DefaultOpts returns a Options cloned from defaultOptions.
FormDataBase setup from exist db instance.
DefaultOpts returns a new Options.
SetDatabase setup database by connection url and db name.
ToSnakeCase returns snake_case of the provided value.
TransactionWithClient creates a transaction with the given client.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

CollectionGetter interface contains a method to return a model's custom collection.
CollectionNameGetter interface contains a method to return the collection name of a model.
CreatedHook is called after a model has been created.
CreatingHook is called before saving a new model to the database.
DeletedHook is called after a model is deleted.
DeletingHook is called before a model is deleted.
No description provided by the author
RestoredHook is called after soft restoring a model.
RestoringHook is called before soft restoring a model.
SavedHook is called after a model is saved to the database.
SavingHook is called before a model (new or existing) is saved to the database.
SoftDeletedHook is called after soft deleting a model.
SoftDeletingHook is called before soft deleting a model.
UpdatedHook is called after a model is updated.
UpdatingHook is called before updating a model.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TransactionFunc is a handler to manage a transaction.