python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Dynamically adding preloads in Ecto query
I have a table A and has_one tables B and C.
I am doing a query on A, but, depending on columns requested, I want the possibility to join and preload columns from B and/or C.
For joins, I think it's r...
Mladen Jablanović
Votes: 0
Answers: 1
Error trying to execute query in Elixir with Ecto
I have an Elixir app that uses Ecto in order to execute queries in Postgres.
I have this Ecto schema:
defmodule Person do
use Ecto.Schema
schema "person" do
field :name, :string
...
Alvaro
Votes: 0
Answers: 1
Why are there always at least 10 sessions for a postgreSQL database? Why can't they be terminated?
Original aim: rename a database using ALTER DATABASE via psql.
Problem: rename fails due to other sessions accessing target database. ・All terminals/applications I am aware of have been closed.
・quer...
jonotree
Votes: 0
Answers: 0
Elixir, pattern matching
I do need help with pattern matching one list of maps. This is how it looks like:
[
%RewardappWeb.User{
__meta__: #Ecto.Schema.Metadata<:loaded, "users">,
april: 50,
au...
Mateusz Osiński
Votes: 0
Answers: 1