Exd v0.1.9 Exd.Schema View Source
Defines an Exd source
An Exd source is used to retrieve and transform external data sources into an continous stream of data
Example
defmodule Person do
use Exd.Schema
schema "person" do
field :id, :string, primary: true
field :name, :string
field :age, :integer
end
end
By default, Exd will use the name a field to retrieve the source data field. However,
if these do not match, the custom accessor
option can be used to create the mapping.
Link to this section Summary
Link to this section Functions
Defines a field on source with the given name and type
Defines the source schema