View Source Ravix.Connection.State (ravix v0.2.2)
Represents the state of a RavenDB connection
- store: Store atom for this state. E.g: Ravix.Test.Store
- database: Name of the database.
- ssl_config: SSL Configurations, E.g: https://www.erlang.org/doc/man/ssl.html
- conventions: Document Configuration conventions
- retry_on_failure: Automatic retry in retryable errors
- retry_on_stale: Automatic retry when the query is stale
- retry_backoff: Amount of time between retries (in ms)
- retry_count: Amount of retries
- node_selector: Module that selects the nodes based on different strategies. E.g: Ravix.Connection.NodeSelector
- urls: List of the urls of RavenDB servers
- topology_etag: ETAG of the RavenDB cluster topology
- disable_topology_updates: If true, the topology will not be updated automatically when requested by the ravendb server
- force_create_database: If true, when the database does not exist, it will be created
- last_topology_update: DateTime when the topology was last updated
- cluster_token: Security Token for the members of the cluster
- healthcheck_every: Checks the node health every x seconds
Link to this section Summary
Link to this section Types
@type t() :: %Ravix.Connection.State{ cluster_token: String.t() | nil, conventions: Ravix.Documents.Conventions.t(), database: String.t(), disable_topology_updates: boolean(), force_create_database: boolean(), healthcheck_every: non_neg_integer(), last_topology_update: DateTime.t() | nil, node_selector: Ravix.Connection.NodeSelector.t(), retry_backoff: non_neg_integer(), retry_count: non_neg_integer(), retry_on_failure: boolean(), retry_on_stale: boolean(), ssl_config: Keyword.t(), store: any(), topology_etag: String.t() | nil, urls: [String.t()] }