SelectoMix.AdapterResolver (selecto_mix v0.4.7)

Resolves adapter CLI values to adapter modules.

Summary

Functions

A human-friendly, actionable message for a adapter_module that failed to load, naming the Hex package to add when it's a known Selecto adapter.

Formats a SelectoMix.Connection / SelectoMix.Introspector adapter error tuple into a human-readable message, naming the Hex package to add when the adapter module itself is missing.

The Hex package name (e.g. "selecto_db_postgresql") that provides adapter_module, if known.

Known short adapter names accepted by the CLI.

Resolve a CLI adapter value to a module.

Functions

describe_missing_adapter(adapter_module)

A human-friendly, actionable message for a adapter_module that failed to load, naming the Hex package to add when it's a known Selecto adapter.

format_adapter_error(other)

Formats a SelectoMix.Connection / SelectoMix.Introspector adapter error tuple into a human-readable message, naming the Hex package to add when the adapter module itself is missing.

hex_package_for(adapter_module)

The Hex package name (e.g. "selecto_db_postgresql") that provides adapter_module, if known.

known_adapter_names()

Known short adapter names accepted by the CLI.

resolve(adapter)

Resolve a CLI adapter value to a module.