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 PostgreSQL functions reverse engineer #902

Closed
ignacioinnovo opened this issue Apr 3, 2021 · 5 comments
Closed

Support PostgreSQL functions reverse engineer #902

ignacioinnovo opened this issue Apr 3, 2021 · 5 comments
Labels
enhancement New feature or request reveng

Comments

@ignacioinnovo
Copy link

First of all, let me congratulate for this great project!

I want to propose the addition of reverse engineer of the PostgreSQL functions as it can be done with MSSQL with the GUI assistant.

Perhaps you have been working on that so, please, update me with the news.

I have a little repository with some code to generate functions from a defined table (https://github.com/InnovoTecnologias/PostgresqlAutogeneration) but I can write some code to do the reverse engineer.

¡Thank you in advanced!

@ErikEJ
Copy link
Owner

ErikEJ commented Apr 3, 2021

Start by having a look at how it is done here...

@ErikEJ ErikEJ added enhancement New feature or request reveng labels Apr 4, 2021
@ignacioinnovo
Copy link
Author

@ErikEJ, thank you for your response.

I have been diving into the code and I think I should create a NpgsqlServerFunctionScaffolder implementing IFunctionScaffolder and NpgsqlServerFunctionModelFactory implementing IFunctionModelFactory under RevEng.Core.50\Functions. Is this right? Is there any documentation or could anyone point me in the right direction?

@ErikEJ
Copy link
Owner

ErikEJ commented Apr 4, 2021

That would work for scalar functions, which is probably a good place to start.

Does postgress support stored procedures?

@ignacioinnovo
Copy link
Author

Yes, since version 11.

@ErikEJ
Copy link
Owner

ErikEJ commented Apr 10, 2021

Closing as duplicate of #697

@ErikEJ ErikEJ closed this as completed Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request reveng
Projects
None yet
Development

No branches or pull requests

2 participants