Skip to content

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
Contributor

@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