Pillar v0.17.0 Pillar.Connection 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

Link to this type

t()

View Source
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

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