DUQL vs PRQL
DUQL is a powerful, YAML-based query language that builds upon the strengths of PRQL (Pipelined Relational Query Language) while offering enhanced readability, flexibility, and ease of use. This document aims to provide a detailed comparison between DUQL and PRQL, highlighting the key differences and advantages of DUQL.
Terminology Mapping
PRQL Term | DUQL Term | Description |
---|---|---|
|
| Specifies the data source |
|
| Chooses columns to include in the output |
|
| Selects rows based on conditions |
|
| Creates new columns or modifies existing ones |
|
| Groups by 1 or more columns |
|
| Performs aggregation operations |
|
| Orders the results |
|
| Limits the number of rows returned |
|
| Combines data from multiple sources |
|
| Performs calculations across a set of rows |
|
| Defines variables, functions, or reusable components |
Key Advantages of DUQL over PRQL
YAML-based Syntax: DUQL uses YAML, a human-friendly data serialization standard, making queries more readable and easier to write, especially for complex operations.
Enhanced Readability: The structure of DUQL queries is more intuitive, with clear separation between different operations and improved formatting options.
Simple Naming Conventions: DUQL uses intuitive naming conventions across its functions and operations that assist with understanding for users new to querying data.
JSON Schemas: DUQL has well-defined JSON schema definitions for query structure and transforms, simplifying the creation of 'query builder' interfaces.
Last updated