Skip to main content
Read more about upserting to Postgres. According to its website, Ecto is a database wrapper and ORM that makes it easy to work with databases in Elixir. To ingest Sequin records with Ecto, you’ll first setup your models like this:
You can also define a struct definition for Sequin records like this:
Then, your upsert logic will look like this: