Uniq.ScopedUUID (Uniq v0.6.3)

View Source

Summary

Functions

Generates an ID for a schema module and field, by default the id field

Functions

generate(module, field \\ :id)

@spec generate(module(), field :: atom()) ::
  {:ok, scoped_uuid :: String.t()} | {:error, reason :: String.t()}

Generates an ID for a schema module and field, by default the id field