Packages

Generates typed Elixir query modules from plain SQL files using Postgres inference or static metadata.

Current section

Files

Jump to
squirr_elix lib squirrelix connection_options.ex
Raw

lib/squirrelix/connection_options.ex

defmodule Squirrelix.ConnectionOptions do
@moduledoc false
@enforce_keys [:host, :port, :user, :password, :database, :timeout_seconds]
defstruct [:host, :port, :user, :password, :database, :timeout_seconds, ssl: false]
@type ssl :: boolean() | keyword() | nil
@type t :: %__MODULE__{
host: String.t(),
port: pos_integer(),
user: String.t(),
password: String.t(),
database: String.t(),
timeout_seconds: non_neg_integer(),
ssl: ssl()
}
end