dimitarvp

dimitarvp

Roadmap for upgrading or creating an Ecto adapter?

Hey everybody,
The purpose of this thread is to answer three questions:

  1. How do we go about upgraging an Ecto 2.2.x adapter that is not on the latest 2.2.x version, to the latest 2.2.x version?
  2. How do we go about upgraging an adapter that is at the latest Ecto 2.2.x version, to Ecto 3.1.x?
  3. How do we go about making an Ecto 3.1.x adapter from scratch?

I apologise to the people I mentioned via an @ in advance. Making this crystal clear here and now: I do not ask those people to produce any code, I am asking them only to help me gather an authoritative collection of informational resources to get me and other interested maintainers started.


I would like to modernise the Sqlite database support in Elixir. This means two things:

  1. (OPTIONAL) Contribute to sqlite_ecto2 so it works with the latest Ecto 2.2.x version (as of the time of this post, 2.2.12). This is mostly for exercise and to dip my toes and hopefully learn well how to approach the Ecto 3.1.x work. If this proves to consume unjustified amounts of energy and time and/or turns out to be unrelated to the Ecto 3.1.x work then I might drop it.

  2. (MAIN GOAL) Make a new library that brings Sqlite to Ecto 3.1.x (as of the time of this post, 3.1.6).

I have tracked several resources:


@michalmuskala Pointed at two useful pages to get new maintainers started here:

There is also another post on his blog – Creating Ecto Adapters – but it’s from 2015 and I am not sure if it’s still relevant.


@jwarlander contributed a link to the MyXQL adapter development blog series: Building a new MySQL adapter for Ecto, Part I: Hello World (links to the rest of the articles are inside this one, and every subsequent one as well).


Additional honorable mentions with a plea for other and/or more modern articles: @josevalim, @ericmj, @wojtekmach, @fishcakez and @whatyouhide.

Most Liked

jwarlander

jwarlander

It’s a great collection of resources you’ve started on, @dimitarvp! It reminds me that I saw an interesting blog post series about implementing an Ecto adapter (by @wojtekmach, on the Plataformatec blog):

Building a new MySQL adapter for Ecto, Part I: Hello World

I’ve always meant to take a deep dive into that one, and see if I can piece together something useful.

Where Next?

Popular in Questions Top

lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
Fl4m3Ph03n1x
Background Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New

Other popular topics Top

yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
AstonJ
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
273 38985 115
New

We're in Beta

About us Mission Statement