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

feat: Add Queue struct and expose functionality #5

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

nimrodkor
Copy link
Contributor

@nimrodkor nimrodkor commented Oct 11, 2024

Generated description

Dear maintainer, below is a concise technical summary of the changes proposed in this PR:

Introduce a new Queue class to encapsulate queue operations, enhancing modularity and code reuse. Refactor existing Pgmq class to delegate queue-specific operations to the Queue class, utilizing helper functions from queries.ts for SQL query generation. Implement parseDbMessage function in message.ts to convert database message objects into application-specific message objects. Update integration tests to validate the new Queue class functionality.

TopicDetails
Query Refactoring Refactor SQL query generation into separate functions in queries.ts to improve code organization and reuse.
Modified files (3)
  • src/classes/pgmq.ts
  • src/classes/queue.ts
  • src/classes/queries.ts
Latest Contributors(1)
EmailCommitDate
[email protected]feat-Add-queue-name-va...October 10, 2024
Queue Class Introduce the Queue class to encapsulate queue operations, providing methods for reading, deleting, and archiving messages.
Modified files (3)
  • src/classes/pgmq.ts
  • src/classes/queue.ts
  • test/integration.spec.ts
Latest Contributors(1)
EmailCommitDate
[email protected]feat-Add-queue-name-va...October 10, 2024
Message Parsing Implement parseDbMessage function to convert database message objects into application-specific message objects.
Modified files (3)
  • src/classes/pgmq.ts
  • src/classes/message.ts
  • src/classes/queue.ts
Latest Contributors(1)
EmailCommitDate
[email protected]feat-Add-queue-name-va...October 10, 2024
Build Script Update Add a prepare script to package.json to ensure code quality through linting and formatting before commits.
Modified files (1)
  • package.json
Latest Contributors(1)
EmailCommitDate
[email protected]Fix-package-nameOctober 10, 2024
This pull request is reviewed by Baz. Join @nimrodkor and the rest of your team on (Baz).

@nimrodkor nimrodkor merged commit 6000ff0 into main Oct 11, 2024
4 checks passed
@nimrodkor nimrodkor deleted the add-queue-struct branch October 11, 2024 04:54
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