Skip to content

Commit

Permalink
docs: only render file support methods once
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and gforsyth committed Sep 12, 2023
1 parent 76f5f4b commit 98b348c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 57 deletions.
10 changes: 0 additions & 10 deletions docs/backends/datafusion.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,6 @@ from _utils import render_do_connect
render_do_connect("datafusion")
```

## File Support

```{python}
#| echo: false
#| output: asis
from _utils import render_methods, get_backend
backend = get_backend("datafusion")
render_methods(backend, "read_csv", "read_parquet", "read_delta", level=4)
```

```{python}
#| echo: false
BACKEND = "DataFusion"
Expand Down
11 changes: 0 additions & 11 deletions docs/backends/duckdb.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,6 @@ You can store it as an environment variable to avoid having to log in again:
['penguins']
```

## File Support

```{python}
#| echo: false
#| output: asis
from _utils import render_methods, get_backend
backend = get_backend("duckdb")
methods = [f"read_{kind}" for kind in ("csv", "parquet", "delta", "json", "in_memory", "sqlite", "postgres")]
render_methods(backend, *methods, level=4)
```

```{python}
#| echo: false
BACKEND = "DuckDB"
Expand Down
12 changes: 0 additions & 12 deletions docs/backends/polars.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,6 @@ from _utils import render_do_connect
render_do_connect("polars")
```

## File Support

```{python}
#| echo: false
#| output: asis
from _utils import render_methods, get_backend
methods = ("read_csv", "read_parquet", "read_delta")
backend = get_backend("polars")
render_methods(backend, *methods, level=4)
```

```{python}
#| echo: false
BACKEND = "Polars"
Expand Down
12 changes: 0 additions & 12 deletions docs/backends/pyspark.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ from _utils import render_do_connect
render_do_connect("pyspark")
```

## File Support

```{python}
#| echo: false
#| output: asis
from _utils import render_methods, get_backend
methods = ("read_csv", "read_parquet")
backend = get_backend("pyspark")
render_methods(backend, *methods, level=4)
```

```{python}
#| echo: false
BACKEND = "PySpark"
Expand Down
12 changes: 0 additions & 12 deletions docs/backends/snowflake.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,6 @@ app.

![Snowflake Database](./images/snowflake_database.png)

## File Support

```{python}
#| echo: false
#| output: asis
from _utils import render_methods, get_backend
methods = ("read_csv", "read_parquet", "read_json")
backend = get_backend("snowflake")
render_methods(backend, *methods, level=4)
```

```{python}
#| echo: false
BACKEND = "Snowflake"
Expand Down

0 comments on commit 98b348c

Please sign in to comment.