Enables reactive PostgreSQL SELECT queries in Meteor applications, providing live-updating result sets.
numtel:pg is a Meteor package that integrates PostgreSQL databases with Meteor's reactivity system. It allows developers to publish reactive SELECT queries that automatically update client-side data when the underlying PostgreSQL data changes, enabling real-time applications. The package leverages the pg-live-select NPM module to provide live query capabilities for PostgreSQL version 9.3 and above.
Meteor developers who need real-time data synchronization with PostgreSQL databases, particularly those building dynamic, data-driven applications like dashboards, leaderboards, or collaborative tools. It is also suitable for developers transitioning from MongoDB to PostgreSQL within the Meteor ecosystem.
Developers choose numtel:pg because it extends Meteor's native reactivity to PostgreSQL with minimal boilerplate, offering efficient real-time updates through reactive SELECT queries. Its unique selling point is the seamless integration that allows direct publication of PostgreSQL queries as reactive data sources, unlike alternatives that may require manual synchronization or lack native PostgreSQL support in Meteor.
Reactive PostgreSQL for Meteor
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Enables publishing PostgreSQL SELECT statements as reactive data sources that update clients in real-time, leveraging the pg-live-select module for automatic updates.
Provides LivePg class for server-side management and PgSubscription for client-side subscriptions without extra Meteor.subscribe calls, reducing boilerplate code.
Supports custom event listeners for update, updated, and reset events, allowing developers to handle data changes with fine-grained control.
Includes cleanup methods to manage database triggers and connections during code updates, ensuring stability in development and deployment.
Requires explicit SIGTERM/SIGINT handlers to clean up database triggers on hot code pushes, adding complexity and risk of orphaned database objects.
Reactivity is focused on SELECT statements; other operations like INSERT or UPDATE require separate handling via the pg object and are not inherently reactive.
Only compatible with PostgreSQL >= 9.3, limiting use with older database versions and potentially requiring upgrades.