-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create native nuget for libpg_query #22
Comments
The main problem: to build a dll, you have to go through a whole fucking quest on windows to run the makefile. |
So, if I successfully solve this issue, I need to replace |
Life is pain and it's not news: pganalyze/libpg_query#44 |
Theoretical Pervert way: using ironpython3 + pglast. Need investigation of possibility usage. |
If you manage to get |
ScriptEngine engine = Python.CreateEngine();
var paths = engine.GetSearchPaths().ToList();
paths.Add("path to cloned https://github.com/lelit/pglast");
paths.Add("path to cloned https://github.com/ethanfurman/aenum");
engine.SetSearchPaths(paths);
engine.Execute(@"
from pglast import parse_sql
root = parse_sql('select 1')
print(root)
"); Result: If there are no ideas where I went wrong, for now the only way out is to go back to trying to compile the project in C, as I originally tried. |
https://github.com/pganalyze/libpg_query
The text was updated successfully, but these errors were encountered: