Requirements
To follow the steps in this guide, you’ll need:- Organization Admin permissions in Omni
- A MotherDuck database using MotherDuck v0.10.2 or higher
Setup
1
Create a MotherDuck access token
- Sign in to your MotherDuck account.
- In top left corner of the page, click the organization name and then Settings.
- Click Integrations > Access Tokens.
- Click + Create token.
- Enter a Name for the token to make it easy to recognize. For example:
Omni connection - For Token type, select Read/Write token.
- Optional. Define expiration settings for the token.
- Click Create token.
- Copy the token. Note: The token will only display once, so make sure you copy it before closing the dialog.
2
Set up a table upload schema
This step is optional. However, we recommend completing it as part of the initial set up or you won’t be able to use CSV uploads in joins.
3
Create the connection in Omni
- In Omni, click Settings > Connections.
- Click the Motherduck option.
-
On the connection setup page, fill in the connection details:
Name Required? Description Display Name Yes A user-friendly name for the connection, which will be used throughout Omni Database Yes The database to connect to Include Other Catalogs No A comma-separated list of other catalogs to include Include Schemas No A comma-separated list of schemas to include in the connection Offloaded Schemas No A comma-separated list of schemas to include in the connection, which will only load on demand. This setting is good for very large schemas or dbt dev schemas. Schema for Table Uploads No The name of the schema to use for table (CSV) uploads. If left blank, you can upload tables but they won’t be pushed to the database or be available for use in joins. Token Yes The MotherDuck authentication token you created in step 1 Database Timezone Yes The timezone used by the database Query Timezone Yes The timezone to use for Omni queries. If a timezone is specified, data will be converted from the Database timezone to the selected timezone. Allow User-Specific Timezones No Allow users to override the connection timezone with their own when querying - When finished, click Create connection.
What’s next?
Now that your MotherDuck is set up, you can:- Configure user permissions, schema refreshes, environments and timezone settings
- Learn how Omni generates the model associated with the connection