Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchVersion ¶
MatchVersion returns a "dynamic User predicate". First, it checks that the "version" field was not changed by another process when executing the `UPDATE` operation. Next, it checks that the new value matches when `SELECT`-ing the node from the database.
func OptimisticLock ¶
Types ¶
type VersionMixin ¶
VersionMixin provides an optimistic concurrency control mechanism using a "version" field.
Click to show internal directories.
Click to hide internal directories.