Skip to content
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

Support generating types for foreign tables #560

Open
pomdtr opened this issue May 17, 2024 · 6 comments
Open

Support generating types for foreign tables #560

pomdtr opened this issue May 17, 2024 · 6 comments

Comments

@pomdtr
Copy link

pomdtr commented May 17, 2024

I'm using steampipe as a way to query cloud apis using sql.

Steampipe use postgresql behind the scene (see https://steampipe.io/docs/develop/overview).

Sadly it looks like kanel is not able to generate types from steampipe foreign tables.

@kristiandupont
Copy link
Owner

If you can access the underlying Postgres database, you should be able to run Kanel on it.

@pomdtr
Copy link
Author

pomdtr commented May 17, 2024

Kanel was able to run on it, but the foreign tables were not included in the output. See the following screenshot:

image

You can list foreign tables in a postgres database by using SELECT * FROM information_schema.foreign_tables;

@pomdtr
Copy link
Author

pomdtr commented May 17, 2024

@kristiandupont
Copy link
Owner

Ah they're foreign tables, right. Those are not supported at the moment, that's correct.

@alande-amorim
Copy link

@kristiandupont, such feature is of interest for an upcoming project I'll be joining. I'm currently assessing this tool and it's pretty cool. I'd like to help develop this feature. Is it being tracked in any roadmap? How can I contribute?

@kristiandupont
Copy link
Owner

It ought to be fairly simple, actually. There is no roadmap or anything like that but I am assuming you would want a foreign table to create types exactly like regular tables?

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

No branches or pull requests

3 participants