View Source EctoKsuid.Options (ecto_ksuid v0.3.0)

Struct containing validated options

This is used internally to generate the options used by the callbacks of the Ecto.ParameterizedType behaviour.

Link to this section Summary

Functions

Compiles EctoKsuid.Options given a keyword list of opts

Returns the default options for EctoKsuid

Returns the prefix for a given set of options

Link to this section Types

@type t() :: %EctoKsuid.Options{
  config: map(),
  dump_prefix: boolean(),
  prefix: String.t() | :inferred
}

Link to this section Functions

@spec compile(keyword()) :: t()

Compiles EctoKsuid.Options given a keyword list of opts

@spec default() :: t()

Returns the default options for EctoKsuid

@spec prefix(options :: t()) :: String.t()

Returns the prefix for a given set of options