MotherDuck
If you’re new to Unstructured, read this note first.
Before you can create a destination connector, you must first sign up for Unstructured and get your Unstructured API key. After you sign up, the Unstructured user interface (UI) appears, which you use to get the key. To learn how, watch this 40-second how-to video.
After you create the destination connector, add it along with a source connector to a workflow. Then run the worklow as a job. To learn how, try out the hands-on Workflow Endpoint quickstart, go directly to the quickstart notebook, or watch the two 4-minute video tutorials for the Unstructured Python SDK.
You can also create destination connectors with the Unstructured user interface (UI). Learn how.
If you need help, reach out to the community on Slack, or contact us directly.
You are now ready to start creating a destination connector! Keep reading to learn how.
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 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.
Was this page helpful?