package
0.0.70
Repository: https://github.com/advdv/stdgo.git
Documentation: pkg.go.dev

# Packages

Package stdenttest is a utility for writing tests on ent transaction.

# Functions

AttemptFromContext returns which execution attempt it is.
ContextWithAttempts stores which execution attempt it is.
ContextWithTx returns a context with the Tx in it.
IsolationLevel specifies the isolation level for new transactions.
No description provided by the author
ReadOnly sets the transaction to be read-only.
SerializationFailureCodes configures which PostgreSQL error codes should be considered serialization failures.
SerializationFailureMaxRetries configures the maximum number of retries in case the transacted code encounters a serialization failure.
Transact0 runs [Transact1] but without a value to return.
Transact1 runs fnc in a transaction T derived from the provided Ent client while returning one value of type U.
TxFromContext will get a transaction of type T from the context or panic.

# Structs

No description provided by the author

# Interfaces

Client defines an Ent client that begins transactions of type T.
Tx describes the constraints for an Ent transaction.

# Type aliases

No description provided by the author