you could consider hosting an empty postgresql database, compile your code as a postgresql foreign data wrapper and expose it as a view. Nothing is more compatible with the postgres wire protocol than postgresql itself ;)
turbot compiles their steampipe plugins in this way. Example: https://github.com/turbot/steampipe-plugin-net