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 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

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部