awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
porsager avatar

porsager/postgres

0
View on GitHub↗
8,566 stars·336 forks·JavaScript·unlicense·14 views

Postgres

This project is a PostgreSQL client library and SQL query builder for JavaScript and TypeScript. It provides a low-level database driver and connection manager to handle database sessions, along with a logical replication client for monitoring real-time changes.

The library distinguishes itself with a high-performance bulk data streamer that utilizes the database copy command for importing and exporting large datasets. It also implements a logical replication protocol to facilitate real-time database synchronization through change subscriptions and channel-based notifications.

The toolset covers broad capability areas including dynamic query composition using parameterized templates, transaction management with automatic commit and rollback, and connection pool management with support for failover hosts. It further includes utilities for custom data type serialization, result set streaming via cursors, and protocol-level query cancellation.

Features

  • PostgreSQL Connectors - Serves as a low-level PostgreSQL client library with support for failover hosts, rotating credentials, and custom sockets.
  • SQL Query Builders - Provides a programmatic interface for constructing complex, dynamic SQL queries through a builder.
  • PostgreSQL Bulk Importers - Exposes a high-performance bulk copy command as readable and writable streams for importing and exporting large datasets.
  • Database Connection Managers - Provides a comprehensive system for managing connection pooling, failover hosts, and dynamic authentication.
  • Connection Pool Managers - Manages database connection lifecycles with pooling, failover host support, and isolated session reservation.
  • Logical Replication Ingestion - Implements the logical replication protocol to stream real-time database change notifications and row-level updates.
  • Database Transaction Management - Implements transaction lifecycle control with automatic commit and rollback support for atomic database operations.
  • Dynamic Fragments - Provides tools for building dynamic SQL statements by conditionally nesting fragments and generating column lists at runtime.
  • Connection Pooling - Manages a set of reusable database connections with the ability to reserve isolated sessions for transactional consistency.
  • Query Parameterization - Implements parameterized query execution using template literals to prevent SQL injection attacks.
  • SQL Query Builders - Provides a query builder that uses tagged template literals to serialize parameters and compose SQL fragments.
  • Transaction Management - Implements comprehensive transaction management with automatic commit, rollback, and savepoint support.
  • Bulk Data Operations - Supports inserting or updating multiple rows in a single query by passing arrays of objects to the builder.
  • Session Reservations - Provides the ability to reserve a single connection from the pool to ensure sequential queries run on the same session.
  • Custom Data Types - Provides a system to map database identifiers to objects using custom serialization and parsing functions.
  • Data Change Subscriptions - Supports real-time monitoring of database insert, update, and delete operations via logical replication.
  • Custom Type Serializers - Enables mapping of database type identifiers to custom JavaScript functions for automated data parsing and encoding.
  • Database Event Listeners - Includes a dedicated connection mechanism for listening to real-time database notifications with automatic reconnection.
  • Dynamic Row Insertion - Provides the ability to add rows using objects or arrays without manually specifying individual column names.
  • Large Dataset Streaming - Implements high-performance streaming of large datasets using the database copy command to optimize memory usage.
  • Result Streaming - Enables memory-efficient processing of large result sets via row-by-row streaming and cursors.
  • Real-time Data Synchronization - Facilitates real-time data synchronization using logical replication protocols and channel-based notifications.
  • Replication Clients - Implements a logical replication client to monitor real-time database changes and event streams.
  • Database Failover Management - Supports high availability by attempting connections to a list of hosts for failover and primary host restriction.
  • Connection Managers - Supports flexible connection configuration via URL strings or option objects with environment variable fallbacks.
  • Database Drivers - Node.js database driver.

Star history

Star history chart for porsager/postgresStar history chart for porsager/postgres

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Postgres

These projects share indexed features with Postgres. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • sqlalchemy/sqlalchemysqlalchemy avatar

    sqlalchemy/sqlalchemy

    11,612View on GitHub↗

    SQLAlchemy is a comprehensive Python SQL toolkit and object-relational mapper that provides a full suite of tools for interacting with relational databases. It serves as a foundational layer for database connectivity, offering both a high-level object-oriented interface for data persistence and a programmatic SQL expression language for constructing complex, dialect-agnostic queries. The project distinguishes itself through its sophisticated unit of work persistence, which coordinates atomic transactions and tracks object state changes to minimize redundant database operations. It provides a

    Pythonpythonsqlsqlalchemy
    View on GitHub↗11,612
  • npgsql/npgsqlnpgsql avatar

    npgsql/npgsql

    3,702View on GitHub↗

    Npgsql is a .NET data provider and client library that enables applications to connect, execute queries, and manage data within PostgreSQL databases. It functions as a connection manager and translation layer between the application and the database server. The project features a connection manager capable of multi-host connectivity, providing load balancing and automatic failover across multiple servers. It includes specialized support for high-volume data import and export through bulk data operations and a mapping system that translates complex database types, such as arrays and JSON, into

    C#c-sharpdatabasedotnet
    View on GitHub↗3,702
  • felixge/node-mysqlfelixge avatar

    felixge/node-mysql

    18,621View on GitHub↗

    This project is a pure JavaScript database driver for Node.js that implements the native MySQL binary protocol. It serves as a comprehensive connector for managing persistent network links to MySQL servers, enabling applications to execute queries, manage transactions, and handle complex data operations without requiring external middleware. The driver distinguishes itself through its integrated support for connection pooling and distributed database routing. It maintains managed sets of reusable network sockets to optimize resource usage under high request volumes, while simultaneously provi

    JavaScript
    View on GitHub↗18,621
  • brianc/node-postgresbrianc avatar

    brianc/node-postgres

    13,155View on GitHub↗

    This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams into JavaScript objects. It serves as a driver for executing queries, managing data, and integrating Node.js applications with PostgreSQL backends. The library includes a connection pool manager to reduce network overhead by caching reusable connections and a result streamer that uses cursors to retrieve large datasets incrementally. It also functions as an event listener for subscribing to asynchronous server-side notifications to trigger real-time application events. Broad

    JavaScriptlibpqnode-postgrespostgres
    View on GitHub↗13,155
Compare all 30 related projects→

Frequently asked questions

What does porsager/postgres do?

This project is a PostgreSQL client library and SQL query builder for JavaScript and TypeScript. It provides a low-level database driver and connection manager to handle database sessions, along with a logical replication client for monitoring real-time changes.

What are the main features of porsager/postgres?

The main features of porsager/postgres are: PostgreSQL Connectors, SQL Query Builders, PostgreSQL Bulk Importers, Database Connection Managers, Connection Pool Managers, Logical Replication Ingestion, Database Transaction Management, Dynamic Fragments.

Which projects share features with porsager/postgres?

Projects with overlapping indexed features include: sqlalchemy/sqlalchemy — SQLAlchemy is a comprehensive Python SQL toolkit and object-relational mapper that provides a full suite of tools for… npgsql/npgsql — Npgsql is a .NET data provider and client library that enables applications to connect, execute queries, and manage… felixge/node-mysql — This project is a pure JavaScript database driver for Node.js that implements the native MySQL binary protocol. It… brianc/node-postgres — This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… knex/knex — Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and…