Replies: 1 comment 4 replies
-
I can vaguely remember we had an initial prototype accessing the tuples of a relation. Indeed, you will need a wrapper because we could not directly use Souffle's native C++ interface in SWIG. Great that you are looking into this issue! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a simple go application calling a souffle program using SWIG.
I'd like to update the SWIG interface so I can get a relation's tuples. I updated the SWIG interface to add
getRelation
, but am not sure how to go about adding bindings for the iterator. Instead of returningsouffle::Relation*
directly, should I wrap it in a newSWIGSouffleRelation
class similar toSWIGSouffleProgram
, and then implement a method to iterate using the underlying iterator? Is there a simpler or more idiomatic solution?Ultimately, I'm thinking the interface would allow for something like
Beta Was this translation helpful? Give feedback.
All reactions