Vibe.Storage.Import (vibe v0.2.3)

Copy Markdown View Source

Session import dispatcher for external sources.

Summary

Functions

import_path(source, path, opts \\ [])

@spec import_path(atom() | String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:error, term()}

imported?(id)

@spec imported?(String.t()) :: boolean()

pi_path(path, opts \\ [])

@spec pi_path(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

providers()

@spec providers() :: %{required(String.t()) => module()}

record!(source, id, metadata)

@spec record!(atom(), String.t(), map()) :: term()