Lightning.Adaptors.Dump (Lightning v2.19.0)

View Source

Writes the adaptor catalogue to a JSON snapshot file, in the shape Lightning.Adaptors.Seed.seed_from_file/2 reads back.

Summary

Functions

Writes every source adaptor and its versions to path as JSON, and returns the number of records written.

Functions

dump_to_file(path, opts \\ [])

@spec dump_to_file(
  Path.t(),
  keyword()
) :: {:ok, non_neg_integer()}

Writes every source adaptor and its versions to path as JSON, and returns the number of records written.

Options:

  • :source - :npm (default) or :local