Skip to content

Validate database parameter usage in Elixir Postgrex connection example #410

@coderabbitai

Description

@coderabbitai

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:

  1. The database parameter should be omitted entirely from the Postgrex connection options
  2. Or if it should be set to a specific value
  3. Document the correct approach in the Elixir connection example

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions