This skill provides standardized patterns for integrating Azure Database for PostgreSQL Flexible Server into Node.js and TypeScript environments using the industry-standard pg (node-postgres) package. It offers comprehensive implementation guidance for both traditional password-based and modern Microsoft Entra ID (passwordless) authentication, while emphasizing best practices like connection pooling, parameterized queries to prevent SQL injection, and robust transaction management. Whether building microservices or large-scale backend systems, this skill ensures secure, type-safe, and efficient database interactions within the Azure ecosystem.
主要功能
011,777 GitHub stars
02Type-safe query implementations using TypeScript interfaces and Generic types.
03High-performance connection pooling configuration for production-grade scalability.
04Microsoft Entra ID (passwordless) authentication with automatic token refresh logic.
05Standardized transaction patterns with robust rollback and error handling.
06Best practice guides for SSL enforcement and security-first parameterized queries.
使用场景
01Migrating legacy PostgreSQL applications to Azure Flexible Server with modern authentication.
02Implementing high-concurrency data processing layers requiring efficient connection management.
03Building secure, enterprise-grade backend services on Azure using Node.js and TypeScript.