MotherDuck
Send processed data from Unstructured to MotherDuck.
The requirements are as follows.
-
A MotherDuck access token for the account.
-
A database in the account.
You can run commands to manage MotherDuck databases, schemas, tables, and more in the MotherDuck UI or for example by connecting to MotherDuck with the DuckDB CLI.
-
A schema in the target database.
-
You can list available schemas and their parent catalogs by running the following command in the MotherDuck UI or the DuckDB CLI:
The MotherDuck connector uses the default schema name of
main
if not otherwise specified. -
A table in the target schema.
-
You can list available tables in a schema by running the following commands in the MotherDuck UI or the DuckDB CLI, replacing the target catalog and schema names:
The MotherDuck connector uses the default table name of
elements
if not otherwise specified.For maximum compatibility, Unstructured recommends the following table schema:
You can list the schema of a table by running the following commands in the MotherDuck UI or the DuckDB CLI, replacing the target catalog, schema, and table names:
To create or change a MotherDuck destination connector, see the following examples.
Replace the preceding placeholders as follows:
<name>
(required): A unique name for this connector.<database>
(required): The name of the target MotherDuck database.<db-schema>
(required): The name of the target schema within the database.<table>
The name of the target table within the schema. By default, this table is namedelements
if not otherwise specified.<md-token>
(required): The access token value within the MotherDuck account that has the appropriate access to the target database, schema, and table.
To change a connector, replace <connector-id>
with the destination connector’s unique ID.
To get this ID, see List destination connectors.
Was this page helpful?