Connection functions in the ADBC Scanner DuckDB extension
Function category
Connection
3 functionsInspect attached ADBC databases, list connection profiles, and refresh attached catalog metadata. Connect with ATTACH … (TYPE adbc) and disconnect with DETACH.
Signature
Returns
A table with the following columns:
| Column | Type | Description |
|---|---|---|
Column
cleared
|
Type
BOOLEAN
|
Description Whether attached ADBC catalog metadata was cleared. |
Description
Use CALL to invalidate schema and table metadata for attached ADBC catalogs after remote DDL. Returns cleared BOOLEAN (false if none are attached). Does not reload drivers or flush connection pools; ordinary data changes need no cache clear.
CALL adbc_clear_cache();
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
database
|
Type
VARCHAR
|
Mode Positional | Description Alias of an ATTACH … (TYPE adbc) database. Unknown or non-ADBC names fail at bind. |
Description
Return driver and server metadata for an attached ADBC database — vendor name, version strings, supported features.
ATTACH ':memory:' AS db (TYPE adbc, driver 'sqlite');
SELECT * FROM adbc_info('db');
DETACH db;
Signature
Arguments (Named)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
search_paths
|
Type
VARCHAR
|
Mode Named | Description Additional profile search paths. |
Description
List locally discoverable ADBC connection profiles. Optionally supply additional profile search paths. On the DuckDB 2.0 build it refuses with a Permission Error when enable_external_access is false, since it reads the filesystem and environment.
SELECT * FROM adbc_profiles();