11# Ecto.ULID
22
3+ [ ![ Module Version] ( https://img.shields.io/hexpm/v/ecto_ulid.svg )] ( https://hex.pm/packages/ecto_ulid )
4+ [ ![ Hex Docs] ( https://img.shields.io/badge/hex-docs-lightgreen.svg )] ( https://hexdocs.pm/ecto_ulid/ )
5+ [ ![ Total Download] ( https://img.shields.io/hexpm/dt/ecto_ulid.svg )] ( https://hex.pm/packages/ecto_ulid )
6+ [ ![ License] ( https://img.shields.io/hexpm/l/ecto_ulid.svg )] ( https://github.com/TheRealReal/ecto-ulid/blob/master/LICENSE.md )
7+ [ ![ Last Updated] ( https://img.shields.io/github/last-commit/TheRealReal/ecto-ulid.svg )] ( https://github.com/TheRealReal/ecto-ulid/commits/master )
8+
39An ` Ecto.Type ` implementation of [ ULID] ( https://github.com/ulid/spec ) .
410
511` Ecto.ULID ` should be compatible anywhere that ` Ecto.UUID ` is supported. It has been confirmed to
@@ -32,6 +38,8 @@ on your system.
3238The following are results from running the benchmark on an AMD Ryzen Threadripper 1950X:
3339
3440```
41+ mix bench
42+ ...
3543benchmark name iterations average time
3644cast/1 10000000 0.25 µs/op
3745dump/1 10000000 0.50 µs/op
@@ -49,7 +57,7 @@ primary key in a database table, but it can be used for other columns just as ea
4957
5058### Install
5159
52- Install ` ecto_ulid ` from Hex by adding it to the dependencies in ` mix.exs ` :
60+ Install ` : ecto_ulid` from Hex by adding it to the dependencies in ` mix.exs ` :
5361
5462``` elixir
5563defp deps do
@@ -119,8 +127,9 @@ Ecto.ULID.bingenerate() #=> <<1, 95, 194, 60, 108, 73, 209, 114, 136, 236, 133,
119127To backfill old data, it may be helpful to pass a timestamp to ` generate/1 ` or ` bingenerate/1 ` . See
120128the [ API documentation] ( https://hexdocs.pm/ecto_ulid ) for more details.
121129
122- ## License
130+ ## Copyright and License
123131
124- Copyright © 2018 The RealReal, Inc.
132+ Copyright (c) 2018 The RealReal, Inc.
125133
126- Distributed under the [ MIT License] ( ./LICENSE ) .
134+ This library is released under the MIT License. See the [ LICENSE.md] ( ./LICENSE.md ) file
135+ for further details.
0 commit comments