Astarte.DataAccess.Mappings (astarte_data_access v1.0.2) View Source

Link to this section Summary

Link to this section Functions

Link to this function

fetch_interface_mappings(db_client, interface_id, opts \\ [])

View Source

Specs

fetch_interface_mappings(:cqerl.client(), binary(), keyword()) ::
  {:ok,
   [
     %Astarte.Core.Mapping{
       allow_unset: term(),
       database_retention_policy: term(),
       database_retention_ttl: term(),
       description: term(),
       doc: term(),
       endpoint: term(),
       endpoint_id: term(),
       expiry: term(),
       explicit_timestamp: term(),
       interface_id: term(),
       path: term(),
       reliability: term(),
       retention: term(),
       type: term(),
       value_type: term()
     }
   ]}
  | {:error, atom()}
Link to this function

fetch_interface_mappings_map(db_client, interface_id, opts \\ [])

View Source

Specs

fetch_interface_mappings_map(:cqerl.client(), binary(), keyword()) ::
  {:ok, map()} | {:error, atom()}