Current section
Files
Jump to
Current section
Files
lib/rql/tokens/update.ex
defmodule Ravix.RQL.Tokens.Update do
defstruct [
:token,
:fields
]
alias Ravix.RQL.Tokens.Update
@type t :: %Update{
token: atom(),
fields: map()
}
@spec update(map()) :: Update.t()
def update(fields) do
%Update{
token: :update,
fields: fields
}
end
end