Skip to content

Commit

Permalink
feat(docs): Adds copy-to-clipboard to code samples (#3702)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchowell authored Jan 17, 2025
1 parent 6b302af commit a7dd7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs-v2/terms.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ You can examine a logical plan using [`df.explain()`](https://www.getdaft.io/pro
| Clustering spec = { Num partitions = 1 }
```

## Structured Query Language (SQL)
## SQL

SQL is a common query language for expressing queries over tables of data. Daft exposes a SQL API as an alternative (but often also complementary API) to the Python [`DataFrame`](https://www.getdaft.io/projects/docs/en/stable/api_docs/doc_gen/dataframe_methods/daft.DataFrame.html#daft.DataFrame) and
[SQL (Structured Query Language)](https://en.wikipedia.org/wiki/SQL) is a common query language for expressing queries over tables of data. Daft exposes a SQL API as an alternative (but often also complementary API) to the Python [`DataFrame`](https://www.getdaft.io/projects/docs/en/stable/api_docs/doc_gen/dataframe_methods/daft.DataFrame.html#daft.DataFrame) and
[`Expression`](https://www.getdaft.io/projects/docs/en/stable/api_docs/expressions.html) APIs for building queries.

You can use SQL in Daft via the [`daft.sql()`](https://www.getdaft.io/projects/docs/en/stable/api_docs/sql.html#daft.sql) function, and Daft will also convert many SQL-compatible strings into Expressions via [`daft.sql_expr()`](https://www.getdaft.io/projects/docs/en/stable/api_docs/sql.html#daft.sql_expr) for easy interoperability with DataFrames.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ theme:
features:
- search.suggest
- search.highlight
- content.code.copy # add copy button to code sections
- content.tabs.link # If one tab switches Python to SQL, all tabs switch
- toc.follow
- toc.integrate # adds page subsections to left-hand menu (instead of right-hand menu)
Expand Down

0 comments on commit a7dd7ef

Please sign in to comment.