Postgres Enums
Postgres AST Enum Definitions
TypeScript enum definitions for Postgres AST nodes, providing type-safe usage of Postgres enums and constants. Essential for safe and ergonomic parsing logic with comprehensive multi-version support.
Type-Safe Enums
Complete TypeScript enum definitions for Postgres
Multi-Version Support
Supports Postgres versions 13 through 18
AST Integration
Designed for use with pgsql-parser and AST manipulation
Postgres Enums Features
Type-safe Postgres enum handling for robust AST manipulation
Complete Type Safety
Comprehensive TypeScript enum definitions for all Postgres constants, enabling type-safe usage throughout your application.
Multi-Version Postgres Support
Supports Postgres versions 13 through 18 with version-specific enum definitions and npm dist-tags.
AST Parser Integration
Designed specifically for use with pgsql-parser and Postgres 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 Postgres 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 Postgres 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 Postgres query analysis.
Multi-Version Enum Handling
Handle different Postgres versions with version-specific enum definitions and compatibility layers.