# Functions
CheckForDirtyWriteOnDeleteOne is expected to be used like this: Add a field to your struct called "DirtyWriteGuard"
type Person struct { ..
CheckForDirtyWriteOnUpsert is expected to be used like this: Add a field to your struct called "DirtyWriteGuard"
type Person struct { ..
DuplicateKeyFiltersFromBulkWriteError returns true if there are any E11000 duplicate key errors.
IsDuplicateKeyError can help handle expected behavior for any mongo command that uses Upsert.
No description provided by the author
New returns a new instance of the data store.
goland:noinspection GoUnusedExportedFunction.
RetryDirtyWrite is used by callers of functions that call CheckForDirtyWriteOnUpsert and can return DirtyWriteError.
RetryDirtyWriteDebug is the same as RetryDirtyWrite except it will log a warning every dirty write.
RetryUpsertIfDuplicateKey can help handle expected behavior for any mongo command that uses Upsert.
TruncateStringSliceForMongoDoc ensures a string slice will fit in the mongodb doc size limit and truncates the slice if necessary logging a warning.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
goland:noinspection GoUnusedExportedFunction.
# Constants
goland:noinspection GoUnusedConst.
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
No description provided by the author
goland:noinspection GoUnusedConst.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author