Ecto.UUID
Ecto.UUID
An Ecto type for UUIDs strings.
Summary
Functions
- bingenerate()
-
Generates a version 4 (random) UUID in the binary format
- cast(u)
-
Casts to UUID
- cast!(value)
-
Same as
cast/1
but raisesEcto.CastError
on invalid arguments - dump(arg1)
-
Converts a string representing a UUID into a binary
- generate()
-
Generates a version 4 (random) UUID
- load(uuid)
-
Converts a binary UUID into a string
- type()
-
The Ecto type
Functions
bingenerate()
Generates a version 4 (random) UUID in the binary format.
cast(u)
Casts to UUID.
cast!(value)
Same as cast/1
but raises Ecto.CastError
on invalid arguments.
dump(arg1)
Converts a string representing a UUID into a binary.
generate()
Generates a version 4 (random) UUID.
load(uuid)
Converts a binary UUID into a string.
type()
The Ecto type.
© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/ecto/Ecto.UUID.html