If I have an Ecto schema something like
defmodule Something do
use Ecto.Schema
@primary_key false
schema "something" do
field :k1, :string, size: 100, null: false, primary_key: true
field :k2, :string, size: 100, null: false, primary_key: true
field :k3, :string, size: 100, null: false, primary_key: true
field :content, :string, null: false
end
end
is possible to introspect the schema to know which fields have primary_key: true
? I see __meta__
struct, but no data there.
Thank you!