Packages
Csv2SqlDashboard is a blazing fast fully automated tool to load huge CSV files into a RDBMS.
Current section
Files
Jump to
Current section
Files
lib/dashboard/db_attribute.ex
defmodule DashBoard.DbAttribute do
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:id, :string)
field(:name, :string)
field(:value, :string)
end
def changeset(struct, params) do
struct
|> cast(params, [:id, :name, :value])
|> validate_required([:id])
end
end