cyrilgdn / terraform-provider-postgresql

Terraform PostgreSQL provider
https://www.terraform.io/docs/providers/postgresql/
Mozilla Public License 2.0
359 stars 182 forks source link

feat: add function import support #275

Closed khkhalifa closed 1 year ago

khkhalifa commented 1 year ago

Hi @cyrilgdn ,

I am creating the pull request to add function import capability.

The read implement is also partial and doesn't detect db changes specially for the body.

The main changes are adding the database in the id and updating the expected body value to be able to support the import. The existing definition is loaded by the predefined function pg_get_functiondef. The language was extracted as a new attribute

It will solve the following issue: #221

khkhalifa commented 1 year ago

@cyrilgdn I pushed the fixes for the lints

khkhalifa commented 1 year ago

cc @cyrilgdn Is there any chance to get this reviewed and merged please?