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.

Last Post!

dimitarvp

dimitarvp

Really valuable link, forgot about it and thank you for bringing it up! Still reading, and gathering a lot of useful info from it. Also added your link to the entire list.

Where Next?

Popular in Questions Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40165 209
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement