Context
In PR #408, the Elixir connection example uses:
{:ok, pid} = Postgrex.start_link(hostname: "localhost", username: "crate", password: "crate", database: "")
Issue
CrateDB has no notion of databases like PostgreSQL does. Instead, CrateDB uses schemas to separate concerns. Setting the database parameter (even to an empty string) might cause connection issues or unexpected behavior.
Task
Validate whether:
- The
database parameter should be omitted entirely from the Postgrex connection options
- Or if it should be set to a specific value
- Document the correct approach in the Elixir connection example
References