Skip to content

[elixir] feat: Add first batch of admin calls#583

Open
nicolazar wants to merge 1 commit into
apache:mainfrom
nicolazar:feat/elixir-admin-part1
Open

[elixir] feat: Add first batch of admin calls#583
nicolazar wants to merge 1 commit into
apache:mainfrom
nicolazar:feat/elixir-admin-part1

Conversation

@nicolazar
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: part of #466

This PR adds the first batch of admin methods on Fluss.Admin for:

  • database_exists/2: checking whether a database exists
  • table_exists/3: checking whether a table exists
  • get_server_nodes/1: retrieving the server nodes as a list of structs Fluss.ServerNode (mirroring its rust counterpart). It relies on a wrapper pattern for output marshaling; future PRs follow the same shape.

We also simplify the integration tests setup by creating a new Fluss.Test.IntegrationCase that can be used across all the tests to inject the @moduletag :integration and reuse setup_all, connect_with_retry/2 helpers.

Brief change log

Tests

Each new admin function includes an integration test.

This commit adds three admin methods on `Fluss.Admin` for:
- checking whether a database exists
- checking whether a table exists
- retrieving the server nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant