Skip to content

Expand PostgreSQL provider resources and workflow tooling#47

Open
refucktor wants to merge 6 commits into
devfrom
feat/new-resources
Open

Expand PostgreSQL provider resources and workflow tooling#47
refucktor wants to merge 6 commits into
devfrom
feat/new-resources

Conversation

@refucktor

Copy link
Copy Markdown
Member

Summary

  • refactor the PostgreSQL client/provider foundation and add schema, extension, grant, and role capabilities with safer imports, membership handling, and generated docs/examples
  • align the repository documentation and add agent skills to support AI-driven contributor workflows
  • split unit and integration test reporting so Codecov and Sonar ingest the correct branch artifacts

…abase/schema management

- Updated `PostgresqlClient` interface to include methods for connection pooling and acquiring connections.
- Implemented connection pooling in `pgClientImpl` using `pgxpool`.
- Added new methods in `DatabaseRepo` for creating, updating, and dropping databases, along with handling comments and connection limits.
- Introduced `SchemaRepo` for managing schemas, including creation, existence checks, updates, and listing schemas.
- Added integration tests for `DatabaseRepo` and `SchemaRepo` to ensure functionality.
- Removed redundant connection close calls in cleanup functions of various tests.

Signed-off-by: Hector Valcarcel <hector.valcarcel@proton.me>
- Implemented `postgresql_schema` resource for managing PostgreSQL schemas with attributes for owner, if_not_exists, drop_cascade, and policy.
- Created `postgresql_schemas` data source to list schemas with filtering options.
- Updated provider to include new schema resource and data source.
- Added tests for schema resource and data source to ensure functionality.
- Enhanced documentation with quick start guide and best practices for using the provider.
- Updated PostgreSQL version in test container to 17-alpine for compatibility.

Signed-off-by: Hector Valcarcel <hector.valcarcel@proton.me>
add an architecture reference and move root guidance into canonical files.

refresh the README and contributing docs so the root documentation matches the current provider state.
Signed-off-by: Hector Valcarcel <hector.valcarcel@proton.me>
@refucktor refucktor requested a review from a team as a code owner April 1, 2026 21:50
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

Successfully merging this pull request may close these issues.

1 participant