package
7.1.0+incompatible
Repository: https://github.com/scalingo/go-utils.git
Documentation: pkg.go.dev
# Functions
Create inserts the document in the database, returns an error if document already exists and set CreatedAt timestamp.
Destroy really deletes.
No description provided by the author
Find is finding the model with objectid id in the collection name, with its default scope for paranoid documents, it won't look at documents tagged as deleted.
No description provided by the author
No description provided by the author
FindUnscoped is similar as Find but does not care of the default scope of the document.
NewValidationErrors return an empty ValidationErrors struct.
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
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
ValidationErrors is a type alias of errors.ValidationErrors.
ValidationErrorsBuilder is a type alias of errors.ValidationErrorsBuilder.