This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

anshul_yadav
I learned C/C++ in college before learning about Algorithms. And thinking about time complexity in C/C++ came naturally to me because I h...
New
rodloboz
Is there any way to do SQL type inference/value casting when I have a raw SQL statement without having access to the underlying Ecto sche...
New

Last Three Year's Trending Top

Qqwy
I am working on a small hobby project which uses ETS/(Am)nesia to learn more about how these systems work. One thing I am struggling wit...
New
jdumont
I’m back with another SQL / database structure question. I feel it’s related to polymorphism, STi and all those concepts, but seems inver...
New
jkwchui
I have an sqlite database (Chinook, iTunes-like data), for which I have setup a simple Phoenix project. The birds eye view: Repo: Musi...
New
user974881
Hello, I am trying to do a postgrex query with the sql library where I get the first entry from a table sorted by last_visited and exclud...
New
almir-neto
I saw that Ecto repo have the function Repo.stream, but I dont know what the steps happens when a trigger the Stream.run. A query like SE...
New
julngomz
Hello All, I don’t know how to ask this question or if I am asking it in the right place, but I need some suggestions/guidance. I am cur...
New
salomvary
Hi folks, I am very new to Elixir and Ecto and struggling to express an SQL query in Ecto where I have to select computed values from a C...
New
WammKD
So I have this tables setup where I’m receiving foreign data and need to insert it into my database. These elements I receive can have a...
New

Trending Over Three Years Top

acrolink
I have this SQL query: SELECT DISTINCT ON (b.id) b.id as book_id, r.id as record_id, r.due_for_return, r.returned_at FROM books b left j...
New
daveaztig14
Hi, I have built a simple elxiir app which receives request like: curl "http://localhost:8085/pass" -H Content-Type: application/json; ...
New
dkulchenko
I can’t seem to figure out a good way of doing this safely. I need to do a find-or-create, so I first check to see if a given row exists ...
New
tpitale
I’m attempting to replicate an INSERT … SELECT in Ecto. This appears to be supported by both postgres and mysql (I’m using postgres). I’v...
New
Sanjibukai
Hi everybody, Edit for TL;DR: How I can use SQL array_agg aggregate function with an Ecto fragment. Particularly how I can nest the se...
New
insideac
I have the following query: {account, {inflow, outflow}} = Repo.one(from account in App.Account, left_join: t0 in App.Transa...
New
francois
Hi all! I don’t know what to do to make Ecto happy to run the following query: sql = "" <> "SELECT chat_user_notification_key...
New
acrolink
I know this can be achieved using raw SQL and Ecto.Adapters.SQL.query() but what is the Ecto way to it? Any help is highly appreciated, t...
New
sean
TL;DR The problem I’m trying to solve is analogous to building an Ecto.Query, say, for posts that includes n number of latest associated ...
New
astjohn
Hi All, I’m trying to perform the following SQL query: SELECT t.*, d.*, u.* FROM ( SELECT x.* FROM trips AS x INNER JOIN trips...
New
bglusman
So I have a gnarly query in my open source Phoenix app I was trying to make dramatically more efficient.. in its current form it brings i...
New
citizenE
Hi there, I am trying to set up a simple Elixir project on Windows 10 with the following dependencies: sqlite_ecto ecto My mix.esx: ...
New
MarioFlach
Hello, I have a single SQL table looking as follow: create table("git_commits", primary_key: false) do add :oid, :binary, primary_key:...
New
Megatomix
Is it possible to program backend with pure elixir (direct SQL in BD) without frameworks? What are the challenges or problems?
New
dkuku
I have a table with documents with separate categories and I want to have a number column which auto increments after adding a new docume...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement