pg-slang

JSON →
library 0.2.6 ·javascript
verified Jun 5, 2026

Converts informal SQL SELECT statements (e.g., "SELECT 'food name', 'calcium' FROM 'apples'") into formal SQL (e.g., "SELECT 'name', 'ca', 'ca_e' FROM 'compositions' WHERE ...") via a user-supplied mapping function. Version 0.2.6, low release cadence. Key differentiator: decouples user-facing informal queries from actual schema by delegating mapping to an external callback, enabling dynamic column/table resolution against a database or dictionary.