Skip to content

Helper to return the write id #2262

@magnetised

Description

@magnetised

Something like:

{:ok, write_id} = 
  Electric.Client.transaction_with_write_id(Repo, fn ->
      Repo.update(changeset) 
  end)

(?)

Write id implementation:

  • transaction xid
  • metadata column in table

For the latter then we could add helpers to create the column in migrations, much like ecto's timestamps()

I think it makes sense to add this functionality here, rather than in electric phoenix as this is not phoenix specific.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions