package
Version:
v0.0.0-...-4c693ee
Opens a new window with list of versions in this module.
Published: Sep 12, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
SQLTxFromContext returns an sql transaction from the context.
SQL represents an sql transaction.
NewSQLTx returns a new SQL transaction wrapped by a structure
that satisfies the txgroup.Tx interface.
Commit commits the transaction.
Key returns the key used for storing SQL transactions in a context.
Rollback discards the transaction.
Weight returns the priority number of the transaction.
type User struct {
ID string `json:"id,omitempty"`
}
User is the request body schema for this example.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.