Skip to content

[WIP] Realistic Repository Layer Example Using rawsql-ts#106

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-3de9ac7d-4122-4fb8-bf26-7d88a1d6850b
Closed

[WIP] Realistic Repository Layer Example Using rawsql-ts#106
Copilot wants to merge 1 commit intomainfrom
copilot/fix-3de9ac7d-4122-4fb8-bf26-7d88a1d6850b

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 27, 2025

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original description:

Create a realistic example in the repository layer using rawsql-ts, SqlParamInjector, and PostgreJSONBulder.

Requirements:

  1. Accept domain-level parameters (search criteria) and dynamically insert them into SQL queries using SqlParamInjector.
  2. Map the resulting query output to a domain schema using PostgreJSONBulder.
  3. Provide a sample structure showcasing simplified repository layer code.

Implementation Details:

  • SqlParamInjector will inject parameters dynamically into a SimpleSelectQuery.
  • PostgreJSONBulder will transform the JSON results from PostgreSQL queries into the domain schema.
  • The example should demonstrate how repository layer code can remain concise and maintainable.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@mk3008
Copy link
Copy Markdown
Owner

mk3008 commented Jun 8, 2025

This has been moved to a different repository, so it is no longer necessary.

https://github.com/mk3008/rawsql-ts-examples

@mk3008 mk3008 closed this Jun 8, 2025
@mk3008 mk3008 deleted the copilot/fix-3de9ac7d-4122-4fb8-bf26-7d88a1d6850b branch June 8, 2025 01:46
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.

2 participants