Postgres Enums

PostgreSQL AST Enum Definitions

TypeScript enum definitions for PostgreSQL AST nodes, providing type-safe usage of PostgreSQL enums and constants. Essential for safe and ergonomic parsing logic with comprehensive multi-version support.

Type-Safe Enums

Complete TypeScript enum definitions for PostgreSQL

Multi-Version Support

Supports PostgreSQL versions 13, 14, 15, 16, and 17

AST Integration

Designed for use with pgsql-parser and AST manipulation

Postgres Enums Features

Type-safe PostgreSQL enum handling for robust AST manipulation

Complete Type Safety

Comprehensive TypeScript enum definitions for all PostgreSQL constants, enabling type-safe usage throughout your application.

Multi-Version PostgreSQL Support

Supports PostgreSQL versions 13, 14, 15, 16, and 17 with version-specific enum definitions and npm dist-tags.

AST Parser Integration

Designed specifically for use with pgsql-parser and PostgreSQL AST manipulation, providing seamless integration.

Bidirectional Conversion

Convert between enum names and numeric values with full type safety and IntelliSense support.

Comprehensive Coverage

Covers all PostgreSQL enum types including ObjectType, NodeTag, JoinType, and many more for complete AST support.

Zero Runtime Overhead

Pure TypeScript enums with no runtime dependencies, ensuring optimal performance and bundle size.

Basic Enum Usage

Use PostgreSQL enums for type-safe AST manipulation with automatic value conversion and validation.

AST Node Type Checking

Leverage enums for robust AST node type checking and validation in PostgreSQL query analysis.

Multi-Version Enum Handling

Handle different PostgreSQL versions with version-specific enum definitions and compatibility layers.