Latest #ecto_sql Threads Top

tylerbarker
Overview SqlKit came about when I wanted to execute SQL inside .sql files at work without having to pollute my context functions with Fil...
New
hugoestr
I need to communicate to an existing database. I would like to have a schema for the table that I will query. Do I need to create the sch...
New
princemaple
Ok this is… more than weird It’s also consistent during insert_all with conflicts. I’m trying to back fill some missing data from bac...
New
chocolatedonut
Besides (over)logging every code-path leading to Repo.insert_all, is it possible to make Postgrex and/or ecto_sql log the exact, failing ...
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
solnic
Hey folks, I’m back with a new library for y’all :slight_smile: Gonna x-post from my blog: I’m excited to announce the latest addition...
New
pmjoe
I do like a lot the concept of errors as values, and the pattern match that can be done in Elixir. I’m building an Elixir app right now a...
New
Schultzer
Hey there, I wrote this low-level library recently, its goal is simply to lower the barrier between Elixir and SQL, and it does that by p...
New
dli
Ecto currently supports some data-modifying WITH statements / CTEs for Postgres: Options: […] :operation - one of :all , :update_all ,...
New
thiagomajesk
Hi! :wave: I was thinking about this today and wanted to collect some feedback… I have been working with an OLAP database for the past ...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

mbklein
When running my tests, I sometimes see an error that looks like [error] Postgrex.Protocol (#PID<0.788.0>) disconnected: ** (DBConn...
New
Schultzer
Hey there, I wrote this low-level library recently, its goal is simply to lower the barrier between Elixir and SQL, and it does that by p...
New
fuelen
Ecto.DevLogger is an alternative logger of SQL queries in development It inlines bindings into the query, so it is easy to copy-paste lo...
New
nevakrien
So I have been stuck for a alot of time tryi g to figure out how to get a vector db for parge vectors that can do KNN. Its suprisingly co...
New
princemaple
Ok this is… more than weird It’s also consistent during insert_all with conflicts. I’m trying to back fill some missing data from bac...
New
hugoestr
I need to communicate to an existing database. I would like to have a schema for the table that I will query. Do I need to create the sch...
New
tylerbarker
Overview SqlKit came about when I wanted to execute SQL inside .sql files at work without having to pollute my context functions with Fil...
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
solnic
Hey folks, I’m back with a new library for y’all :slight_smile: Gonna x-post from my blog: I’m excited to announce the latest addition...
New
dli
Ecto currently supports some data-modifying WITH statements / CTEs for Postgres: Options: […] :operation - one of :all , :update_all ,...
New
chocolatedonut
Besides (over)logging every code-path leading to Repo.insert_all, is it possible to make Postgrex and/or ecto_sql log the exact, failing ...
New

Last Three Year's Trending Top

pinksynth
Hi all! First time posting, let me know if I can structure my question better. I am using Ecto migrations on a project and need to add c...
New
sahilpaudel
I have raised an issue at ecto_sql issue_link Adding it here to reach out to larger community. I have updated my ecto_sql_3.0 to ecto_s...
New
Kabie
How can I achieve such query in Ecto? postgres=> SELECT * FROM (VALUES (1,2,3,4), (5,6,7,8)) AS foo (a,b,c,d); a | b | c | d ---+--...
New
freewebwithme
I need some help to understand writing test for async function For example I have a function def send_notification({:ok, nessage}, to, ...
New
mgpld
According to page https://hexdocs.pm/ecto/getting-started.html: NOTE: Your PostgreSQL database may be setup to not require a username ...
New
caslu
Hi everyone :wave:, I know there’s a lot of other questions and discussions about this subject, but most of them were asked a long time a...
New
fireproofsocks
I’m working on debugging a TransactionRetryWithProtoRefreshError error that comes up from time to time on an app using CockroachDB. The ...
New
zoedsoupe
Hello community! I’m starting to implement an all-in-one library/SDK for Supabase services for Elixir and the roadmap can be seen on the ...
New
nathany
Is there a way to stream data TO the database with Ecto? I’m working on using the COPY command to load CSV data directly into Postgres. ...
New
gbaird
I am trying to code a bank transfer service using Elixir/Erlang, Postgrex and PostgreSQL. Erlang v 26 Elixir v 1.16.0 Postgrex v 0.17....
New
maz
I’m getting an query error when attempting to apply a conflict strategy here at line 38: progress_track.ex · GitHub The idea is that if ...
New
dli
I use Repo.insert_all to bulk insert ~100m rows in chunks. After each chunk, some outdated data based on the insert’s RETURNING is delete...
New
IwoHerka
With ecto_sql version 3.10.2 (for MySQL), the following code: Repo.transaction(fn -> Repo.query!("SET TRANSACTION ISOLATION LEVEL R...
New
theAntimon
Hi, I’m new to nerves but already managed to build the Weather Station (and also read the Binary-Clock-Book). Now I want to modify the ...
New
thiagomajesk
Hi! :wave: I was thinking about this today and wanted to collect some feedback… I have been working with an OLAP database for the past ...
New

Trending Over Three Years Top

thiagomajesk
Hello everyone, I was working on a project and was faced with this problem and I’d like some input from you on the subject. Imagine this ...
New
_toni
Hello, When one is within the Mix context it’s possible to run $ mix run priv/repo/seeds.exs Which will evaluate code like the followi...
New
kevinlang
Hey all, We have made an Ecto3 Adapter for SQLite3, ecto_sqlite3! We have successfully on-boarded the full suite of integration tests (...
New
dmitriid
{:ecto_sql, "~> 3.4"}, {:phoenix, "~> 1.5.8"}, {:phoenix_ecto, "~> 4.1"}, {:myxql, "~> 0.4.0"}, Currently ...
New
ourway
Hi there, I think Ecto development should consider this recommendations:
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
pejrich
I’ve noticed recently that the idle time for my queries is creeping up over 1k ms. [debug] QUERY OK source="chats" db=0.8ms idle=1272.7m...
New
nhpip
Hi, We are using DBConnection and Ecto with a Postgres DB. Occasionally we get errors like below in the Postgres log: 2022-09-17 12:36:...
New
alexcastano
Hello, I want to store a structured raw input in a JSONB column. This raw input is already in an embedded schema because it has been pre...
New
lkananowicz
Hi, I am looking for a way to monitor connections pool of Ecto repo. Basically we want to measure maximum capacity of our application, so...
New
Fire-Dragon-DoL
Hello, I’m being curious about why Ecto needs explicit casting when passing arguments to a query. I faced the following situation: amou...
New
mbklein
We’ve got a kind of producer/consumer workflow happening, involving three processes. The main process inserts a whole bunch of records i...
New
franckstifler
Hi. I have a query that looks like this: from p in Payment, group_by: fragment("extract(hour from ?) as hour", p.inserted_at), select: {...
New
steven7
Hi I am trying to preload associations for a subquery like such: from(p in Post, distinct: [p.group_id], order_by: [asc: p.published_dat...
New
warmwaffles
During the winter storm here in Texas, I was couped up without reliable electricity so I was bored and started working on an sqlite3 nif ...
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