Skip to content

Commit 6d8db95

Browse files
committed
Place URL-string examples in code cell
1 parent ed80b66 commit 6d8db95

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

pointblank/validate.py

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,12 +1072,14 @@ def preview(
10721072
Connection strings follow database URL formats and must also specify a table using the
10731073
`::table_name` suffix. Examples include:
10741074

1075-
- `"duckdb:///path/to/database.ddb::table_name"`
1076-
- `"sqlite:///path/to/database.db::table_name"`
1077-
- `"postgresql://user:password@localhost:5432/database::table_name"`
1078-
- `"mysql://user:password@localhost:3306/database::table_name"`
1079-
- `"bigquery://project/dataset::table_name"`
1080-
- `"snowflake://user:password@account/database/schema::table_name"`
1075+
```
1076+
"duckdb:///path/to/database.ddb::table_name"
1077+
"sqlite:///path/to/database.db::table_name"
1078+
"postgresql://user:password@localhost:5432/database::table_name"
1079+
"mysql://user:password@localhost:3306/database::table_name"
1080+
"bigquery://project/dataset::table_name"
1081+
"snowflake://user:password@account/database/schema::table_name"
1082+
```
10811083

10821084
When using connection strings, the Ibis library with the appropriate backend driver is required.
10831085

@@ -1150,8 +1152,8 @@ def preview(
11501152

11511153
### Working with CSV Files
11521154

1153-
The `preview()` function can directly accept CSV file paths, making it easy to preview data stored
1154-
in CSV files without manual loading:
1155+
The `preview()` function can directly accept CSV file paths, making it easy to preview data
1156+
stored in CSV files without manual loading:
11551157

11561158
```{python}
11571159
# Get a path to a CSV file from the package data
@@ -1209,7 +1211,6 @@ def preview(
12091211
For comprehensive documentation on supported connection string formats, error handling, and
12101212
installation requirements, see the [`connect_to_table()`](`pointblank.connect_to_table`)
12111213
function.
1212-
```
12131214
"""
12141215

12151216
# Process input data to handle different data source types
@@ -2798,12 +2799,14 @@ class Validate:
27982799
Connection strings follow database URL formats and must also specify a table using the
27992800
`::table_name` suffix. Examples include:
28002801

2801-
- `"duckdb:///path/to/database.ddb::table_name"`
2802-
- `"sqlite:///path/to/database.db::table_name"`
2803-
- `"postgresql://user:password@localhost:5432/database::table_name"`
2804-
- `"mysql://user:password@localhost:3306/database::table_name"`
2805-
- `"bigquery://project/dataset::table_name"`
2806-
- `"snowflake://user:password@account/database/schema::table_name"`
2802+
```
2803+
"duckdb:///path/to/database.ddb::table_name"
2804+
"sqlite:///path/to/database.db::table_name"
2805+
"postgresql://user:password@localhost:5432/database::table_name"
2806+
"mysql://user:password@localhost:3306/database::table_name"
2807+
"bigquery://project/dataset::table_name"
2808+
"snowflake://user:password@account/database/schema::table_name"
2809+
```
28072810

28082811
When using connection strings, the Ibis library with the appropriate backend driver is required.
28092812

0 commit comments

Comments
 (0)