MnemosyneEcto.IngestionSerializer (mnemosyne_ecto v0.2.0)

Copy Markdown View Source

Converts Mnemosyne ingestion records to and from durable database rows.

Summary

Functions

Reconstructs a Mnemosyne ingestion record from a durable database row.

Converts an ingestion record into a scoped row suitable for Repo.insert_all/3.

Functions

from_row(row)

Reconstructs a Mnemosyne ingestion record from a durable database row.

to_row(record, tenant_id, repo_id)

Converts an ingestion record into a scoped row suitable for Repo.insert_all/3.