49 adding postgres as a supported consumer#50
Draft
hashanwcreately wants to merge 2 commits into
Draft
Conversation
Added import for pgConfig. Added a postgresClient property to the Siddi class. Added the initPostgres method to initialize the Postgres connection. Called this.initPostgres() in the constructor. Added the close method to properly close the Postgres connection. These changes add Postgres support to the Siddi class while maintaining the original functionality and code structure. The new methods (initPostgres and close) are documented in the same style as the existing methods.
- Integrate Postgres as a new event consumer - Add pgConfig.ts for Postgres connection configuration - Modify siddi.ts: - Add postgresClient property - Implement initPostgres method for connection setup - Update close method to handle Postgres connection - Update consumers.ts: - Add Postgres consumer with test, identify, and track methods - Implement robust connection testing for Postgres - Ensure backward compatibility with existing consumers - Add necessary type declarations for global Postgres client This commit enables Siddi to store events and user data in a Postgres database while maintaining support for existing event consumers.
Author
Author
|
as per @Damith88 Having the postgres db behind an internal endpoint and add this endpoint as the consumer. + security considerations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Postgres support to Siddi event tracking system
This commit enables Siddi to store events and user data in a Postgres
database while maintaining support for existing event consumers.