View Source Plausible.Imported (Plausible v0.0.1)

Context for managing site statistics imports.

Currently following importers are implemented:

For more information on implementing importers, see Plausible.Imported.Importer.

Summary

Functions

Link to this function

delete_imports_for_site(site)

View Source
@spec delete_imports_for_site(Plausible.Site.t()) :: :ok
Link to this function

get_earliest_import(site)

View Source
@spec get_earliest_import(Plausible.Site.t()) ::
  Plausible.Imported.SiteImport.t() | nil
@spec get_import(non_neg_integer()) :: Plausible.Imported.SiteImport.t() | nil
@spec list_all_imports(Plausible.Site.t()) :: [Plausible.Imported.SiteImport.t()]
Link to this function

list_complete_import_ids(site)

View Source
@spec list_complete_import_ids(Plausible.Site.t()) :: [non_neg_integer()]

See Plausible.Imported.Importer.listen/0.

@spec load_import_data(Plausible.Site.t()) :: Plausible.Site.t()
@spec max_complete_imports() :: non_neg_integer()
@spec tables() :: [String.t()]