File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -2465,14 +2465,17 @@ def connect_to_table(connection_string: str) -> Any:
2465
2465
Supported Connection String Formats
2466
2466
-----------------------------------
2467
2467
The `connection_string` parameter must include a valid connection string with a table name
2468
- specified using the `::` syntax. For example:
2469
-
2470
- - DuckDB: `"duckdb:///path/to/database.ddb::table_name"`
2471
- - SQLite: `"sqlite:///path/to/database.db::table_name"`
2472
- - PostgreSQL: `"postgresql://user:password@localhost:5432/database::table_name"`
2473
- - MySQL: `"mysql://user:password@localhost:3306/database::table_name"`
2474
- - BigQuery: `"bigquery://project/dataset::table_name"`
2475
- - Snowflake: `"snowflake://user:password@account/database/schema::table_name"`
2468
+ specified using the `::` syntax. Here are some examples on how to format connection strings
2469
+ for various backends:
2470
+
2471
+ ```
2472
+ DuckDB: `"duckdb:///path/to/database.ddb::table_name"`
2473
+ SQLite: `"sqlite:///path/to/database.db::table_name"`
2474
+ PostgreSQL: `"postgresql://user:password@localhost:5432/database::table_name"`
2475
+ MySQL: `"mysql://user:password@localhost:3306/database::table_name"`
2476
+ BigQuery: `"bigquery://project/dataset::table_name"`
2477
+ Snowflake: `"snowflake://user:password@account/database/schema::table_name"`
2478
+ ```
2476
2479
2477
2480
If the connection string does not include a table name, the function will attempt to connect to
2478
2481
the database and list available tables, providing guidance on how to specify a table.
You can’t perform that action at this time.
0 commit comments