Skip to content

Commit d88c0bd

Browse files
Update README.md
1 parent 1b84743 commit d88c0bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ PRQL (Pipelined Relational Query Language) is an open source query language for
1010

1111
## Key features
1212
- [Write functions with PRQL](#write-functions-with-prql) - Useful for large analytical queries
13-
- [Compile PRQL strings to SQL strings](#compile-prql-strings-to-sql-strings) - Useful for development and debugging
13+
- [Compile PRQL queries to SQL queries](#compile-prql-queries-to-sql-queries) - Useful for development and debugging
1414
- [Execute PRQL queries](#execute-prql-queries) - Useful for prototyping and custom queries in ORMs
1515

1616
### Write functions with PRQL
17-
PRQL shines when your SQL queries becomes very long and complex. You can manage this complexity by porting your most impressive SQL incantations to PRQL functions, which can then be used in dashboards, business logic or other database code. For example:
17+
PRQL shines when your SQL queries becomes long and complex. You can manage this complexity by porting your most impressive SQL incantations to PRQL functions, which can then be used in dashboards, business logic or other database code. For example:
1818

1919
```sql
2020
create function match_stats(int) returns table(player text, kd_ratio float) as $$
@@ -40,7 +40,7 @@ select * from match_stats(1001)
4040
(2 rows)
4141
```
4242

43-
### Compile PRQL strings to SQL strings
43+
### Compile PRQL queries to SQL queries
4444
You can use `prql_to_sql()` to see the SQL statements that PostgreSQL executes under the hood. This function invokes the PRQL compiler and shows you the resulting SQL code. Using the example above:
4545

4646
```sql
@@ -62,7 +62,7 @@ WHERE _expr_1 > 0
6262
```
6363

6464
### Execute PRQL queries
65-
You can run PRQL code directly with the `prql` function. This is useful for e.g. custom queries in ORMs:
65+
You can run PRQL code directly with the `prql` function. This is useful for e.g. custom queries in application code:
6666

6767
```sql
6868
select prql('from matches | filter player == ''Player1''')

0 commit comments

Comments
 (0)