Pillar.Connection (Pillar v0.30.0) View Source

Structure with connection config, such as host, port, user, password and other

Link to this section Summary

Functions

Generates Connection from typical connection string

Link to this section Types

Specs

t() :: %{
  host: String.t(),
  port: integer(),
  scheme: String.t(),
  password: String.t(),
  user: String.t(),
  database: String.t(),
  max_query_size: integer() | nil,
  allow_suspicious_low_cardinality_types: boolean() | nil
}

Link to this section Functions

Specs

new(String.t()) :: t()

Generates Connection from typical connection string:

%Pillar.Connection{} = Pillar.Connection.new("https://user:password@localhost:8123/some_database")

# in this case "default" database is used
%Pillar.Connection{} = Pillar.Connection.new("https://localhost:8123")
Link to this function

url_from_connection(connect_config)

View Source