Skip to content

Commit 65ec592

Browse files
authored
[Hold] Platform: MotherDuck destination connector (#484)
1 parent d4df85a commit 65ec592

File tree

11 files changed

+117
-0
lines changed

11 files changed

+117
-0
lines changed

mint.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@
520520
"platform/destinations/kafka",
521521
"platform/destinations/milvus",
522522
"platform/destinations/mongodb",
523+
"platform/destinations/motherduck",
523524
"platform/destinations/neo4j",
524525
"platform/destinations/onedrive",
525526
"platform/destinations/pinecone",
@@ -575,6 +576,7 @@
575576
"platform/api/destinations/kafka",
576577
"platform/api/destinations/milvus",
577578
"platform/api/destinations/mongodb",
579+
"platform/api/destinations/motherduck",
578580
"platform/api/destinations/neo4j",
579581
"platform/api/destinations/onedrive",
580582
"platform/api/destinations/pinecone",
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: MotherDuck
3+
---
4+
5+
Send processed data from Unstructured to MotherDuck.
6+
7+
The requirements are as follows.
8+
9+
import MotherDuckPrerequisites from '/snippets/general-shared-text/motherduck.mdx';
10+
11+
<MotherDuckPrerequisites />
12+
13+
To create or change a MotherDuck destination connector, see the following examples.
14+
15+
import MotherDuckAPIRESTCreate from '/snippets/destination_connectors/motherduck_rest_create.mdx';
16+
import MotherDuckAPIRESTChange from '/snippets/destination_connectors/motherduck_rest_change.mdx';
17+
18+
<CodeGroup>
19+
<MotherDuckAPIRESTCreate />
20+
<MotherDuckAPIRESTChange />
21+
</CodeGroup>
22+
23+
Replace the preceding placeholders as follows:
24+
25+
import MotherDuckAPIPlaceholders from '/snippets/general-shared-text/motherduck-api-placeholders.mdx';
26+
27+
<MotherDuckAPIPlaceholders />
28+
29+
To change a connector, replace `<connector-id>` with the destination connector's unique ID.
30+
To get this ID, see [List destination connectors](/platform/api/overview#list-destination-connectors).

platform/api/destinations/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ For the list of specific settings, see:
2929
- [Kafka](/platform/api/destinations/kafka) (`kafka-cloud`)
3030
- [Milvus](/platform/api/destinations/milvus) (`milvus`)
3131
- [MongoDB](/platform/api/destinations/mongodb) (`mongodb`)
32+
- [MotherDuck](/platform/api/destinations/motherduck) (`motherduck`)
3233
- [Neo4j](/platform/api/destinations/neo4j) (`neo4j`)
3334
- [OneDrive](/platform/api/destinations/onedrive) (`onedrive`)
3435
- [Pinecone](/platform/api/destinations/pinecone) (`pinecone`)

platform/connectors.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ If your source is not listed here, you might still be able to connect Unstructur
4646
- [Google Cloud Storage](/platform/destinations/google-cloud)
4747
- [Kafka](/platform/destinations/kafka)
4848
- [Milvus](/platform/destinations/milvus)
49+
- [MotherDuck](/platform/destinations/motherduck)
4950
- [MongoDB](/platform/destinations/mongodb)
5051
- [Neo4j](/platform/destinations/neo4j)
5152
- [OneDrive](/platform/destinations/onedrive)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: MotherDuck
3+
---
4+
5+
Send processed data from Unstructured to MotherDuck.
6+
7+
The requirements are as follows.
8+
9+
import MotherDuckPrerequisites from '/snippets/general-shared-text/motherduck.mdx';
10+
11+
<MotherDuckPrerequisites />
12+
13+
To create the destination connector:
14+
15+
1. On the sidebar, click **Connectors**.
16+
2. Click **Destinations**.
17+
3. Cick **New** or **Create Connector**.
18+
4. Give the connector some unique **Name**.
19+
5. In the **Provider** area, click **MotherDuck**.
20+
6. Click **Continue**.
21+
7. Follow the on-screen instructions to fill in the fields as described later on this page.
22+
8. Click **Save and Test**.
23+
24+
import MotherDuckFields from '/snippets/general-shared-text/motherduck-platform.mdx';
25+
26+
<MotherDuckFields />

platform/destinations/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ To create a destination connector:
2828
- [Kafka](/platform/destinations/kafka)
2929
- [Milvus](/platform/destinations/milvus)
3030
- [MongoDB](/platform/destinations/mongodb)
31+
- [MotherDuck](/platform/destinations/motherduck)
3132
- [Neo4j](/platform/destinations/neo4j)
3233
- [OneDrive](/platform/destinations/onedrive)
3334
- [Pinecone](/platform/destinations/pinecone)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```bash REST (Change)
2+
curl --request 'PUT' --location \
3+
"$UNSTRUCTURED_API_URL/destinations/<connector-id>" \
4+
--header 'accept: application/json' \
5+
--header "unstructured-api-key: $UNSTRUCTURED_API_KEY" \
6+
--header 'content-type: application/json' \
7+
--data \
8+
'{
9+
"config": {
10+
"database": "<database>",
11+
"db_schema": "<db-schema>",
12+
"table": "<table>",
13+
"md_token": "<md-token>"
14+
}
15+
}'
16+
```
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
```bash REST (Create)
2+
curl --request 'POST' --location \
3+
"$UNSTRUCTURED_API_URL/destinations" \
4+
--header 'accept: application/json' \
5+
--header "unstructured-api-key: $UNSTRUCTURED_API_KEY" \
6+
--header 'content-type: application/json' \
7+
--data \
8+
'{
9+
"name": "<name>",
10+
"type": "motherduck",
11+
"config": {
12+
"database": "<database>",
13+
"db_schema": "<db-schema>",
14+
"table": "<table>",
15+
"md_token": "<md-token>"
16+
}
17+
}'
18+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- `<name>` (_required_): A unique name for this connector.
2+
- `<database>` (_required_): The name of the target MotherDuck database.
3+
- `<db-schema>` (_required_): The name of the target schema within the database.
4+
- `<table>` The name of the target table within the schema. By default, this table is named `elements` if not otherwise specified.
5+
- `<md-token>` (_required_): The access token value within the MotherDuck account that has the appropriate access to the target database, schema, and table.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Fill in the following fields:
2+
3+
- **Name** (_required_): A unique name for this connector.
4+
- **Database** (_required_): The name of the target MotherDuck database.
5+
- **Schema** (_required_): The name of the target schema within the database.
6+
- **Table**: The name of the target table within the schema. By default, this table is named `elements` if not otherwise specified.
7+
- **MotherDuck Token** (_required_): The access token value within the MotherDuck account that has the appropriate access to the target database, schema, and table.

0 commit comments

Comments
 (0)