Skip to content

RelationReader implementation #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

RelationReader implementation #31

wants to merge 11 commits into from

Conversation

NRHelmi
Copy link
Contributor

@NRHelmi NRHelmi commented Sep 14, 2022

This PR adds RelationReader implementation to csharp sdk
reader.Tuples(), reader.Tuple(int index), reader.ColumnCount(), reader.TupleCount(), reader.Physical() & reader.Print()
Please check the RelationReader integration tests for more examples 🙏

var rsp = await client.ExecuteWaitAsync(database, engine, "(1, 2, 3); (:a, :b, :c)");
foreach (var result in rsp.Results)
{
  var reader = new RelationReader(result);
  reader.Print();
}

 ------------------------------------- 
 | String | String | String | String |
 ------------------------------------- 
 | output | a      | b      | c      |
 ------------------------------------- 

 ---------------------------------- 
 | String | Int64 | Int64 | Int64 |
 ---------------------------------- 
 | output | 1     | 2     | 3     |
 ---------------------------------- 

Copy link
Collaborator

@bradlo bradlo left a comment

Choose a reason for hiding this comment

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

is this the same approach taken in the other SDKs?

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.

2 participants