Skip to content

[elixir] feat: Add get_database_info admin call#586

Merged
fresh-borzoni merged 1 commit into
apache:mainfrom
nicolazar:feat/elixir-admin-part2
Jun 3, 2026
Merged

[elixir] feat: Add get_database_info admin call#586
fresh-borzoni merged 1 commit into
apache:mainfrom
nicolazar:feat/elixir-admin-part2

Conversation

@nicolazar
Copy link
Copy Markdown
Contributor

@nicolazar nicolazar commented Jun 1, 2026

Purpose

Linked issue: part of #466
closes #596

This PR adds the get_database_info admin call on Fluss.Admin, returning a Fluss.DatabaseInfo struct that embeds a nested Fluss.DatabaseDescriptor (comment + custom properties).

The output-marshaling pattern follows the wrapper convention established by get_server_nodes in #583: bindings-local Nif* structs with from_core builders, derived NifStruct for cross-FFI encoding.

Tests

Integration tests added for positive case (create db → assert struct shape), as well as for negative case ({:error, %Fluss.Error{}} for non-existent db).

This commit adds the `get_database_info` admin call on `Fluss.Admin`,
returning a `Fluss.DatabaseInfo` struct that embeds a nested
`Fluss.DatabaseDescriptor` (comment + custom properties).

The output-marshaling pattern follows the wrapper convention
established by `get_server_nodes` in apache#583: bindings-local `Nif*`
structs with `from_core` builders, derived `NifStruct` for cross-FFI
encoding.

Part of apache#466.
Copy link
Copy Markdown
Member

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolazar Thank you, LGTM 👍

@fresh-borzoni fresh-borzoni merged commit 4e64847 into apache:main Jun 3, 2026
2 checks passed
@nicolazar nicolazar deleted the feat/elixir-admin-part2 branch June 3, 2026 22:35
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.

[elixir] add get_database_info call

2 participants