logica icon indicating copy to clipboard operation
logica copied to clipboard

Function to just export the SQL

Open jon-whit opened this issue 1 year ago • 1 comments

Instead of running the predicate of a program against a storage engine such as SQLite, I'd like to just output the raw SQL query. It would be nice if I could do so with user_flags as well, because I'd like to pass in values for predicates defined in the rule body.

Is this something you'd be willing to expose in the libraries API?

jon-whit avatar Mar 21 '24 21:03 jon-whit

Yes, this functionality is available. Here is an example: https://colab.research.google.com/drive/1ivq4Bjm8tjM7hm7XRHH6uXHacI5wLgQQ?usp=sharing

Please let me know if you hit any issues, or have any further questions.

EvgSkv avatar Mar 25 '24 15:03 EvgSkv