Top "Ecto" questions

Ecto is a domain specific language for writing queries and interacting with databases in Elixir.

Ecto Postgres install error password authentication failed

I created a phoenix project from the hello example using digital ocean. I entered the username and password from the …

postgresql phoenix-framework ecto
How can I see the raw SQL generated for an Ecto.Query?

I have an Ecto.Query and a Repo, such that I can call Repo.all(query) and get results. However, …

elixir ecto
Why I got #Ecto.Association.NotLoaded?

I have teams and each team has users, so there is a join table to link users to teams as …

elixir phoenix-framework ecto
Count the Number of Entries in an Ecto Repository

Whats the quickest way to see the number of entries in my database? I'd like to see the number of …

elixir phoenix-framework ecto
Default datetime with Ecto & Elixir

I've just started working Elixir & Phoenix today, i am trying to add Ecto as a mapper, but i'm having …

postgresql elixir ecto
How to alter a column name in an Ecto model with a migration?

Does anyone know of (or can provide) an example of how to alter a table column name using the ecto …

elixir ecto
Ecto delete referenced database record

I have 2 tables: user: id username password unique_index username (the schema has a has_many other) other: id user_…

elixir ecto
How to change field type in Ecto?

I have a schema: schema "editables" do field :title, :string field :content, :string timestamps end Now I want to change …

elixir phoenix-framework ecto
What is a changeset in phoenix elixir

I'm having problem understanding the changeset in model. What it does? Can we have more than one changeset in a …

elixir phoenix-framework ecto
Many to Many relationship in Ecto

I have a Users model and a Chats model. Intuitively multiple people will belong to the same chat group at …

elixir phoenix-framework ecto