Current section

Files

Jump to
fdb lib fdb option.ex
Raw

lib/fdb/option.ex

defmodule FDB.Option do
@moduledoc """
This module contains all the options that are accepted by various
functions. These options are autogenerated from xml file.
"""
require FDB.OptionBuilder
FDB.OptionBuilder.defoptions()
FDB.OptionBuilder.defvalidators()
@type key :: integer
@type value :: integer | binary
@doc false
def normalize_value(value) when is_binary(value) do
value
end
def normalize_value(value) when is_integer(value) do
<<value::64-signed-little-integer>>
end
end