View Source Kino.Ecto (Kino v0.5.2)
A widget for interactively viewing Ecto
query results.
The data must be an enumerable of records, where each record is either map, struct, keyword list or tuple.
Examples
The widget primarily allows for viewing a database table given a schema:
Kino.Ecto.new(Weather, Repo)
However, the first argument can be any queryable, so you can pipe arbitrary queries directly to the widget:
from(w in Weather, where: w.city == "New York")
|> Kino.Ecto.new(Repo)
Link to this section Summary
Functions
Starts a widget process with the given queryable as the data source.
Link to this section Types
Specs
t() :: Kino.JS.Live.t()
Link to this section Functions
Specs
new(Ecto.Queryable.t(), Ecto.Repo.t()) :: t()
Starts a widget process with the given queryable as the data source.