Connect Soda to MotherDuck

Access reference configuration to connect Soda to a MotherDuck data source.

For Soda to run quality scans on your data, you must configure it to connect to your data source. To learn how to set up Soda and configure it to connect to your data sources, see Get started.

Connection configuration reference

Install package: soda-duckdb Refer to MotherDuck instructions for further detail.

data_source quack:
  type: duckdb
  database: "md:sample_data?motherduck_token=eyJhbGciOxxxxx.eyJzZXxxxxx.l4sxxxxx"
  read_only: true
Property
Required
Notes

type

required

Identify the type of data source for Soda.

database

required

Provide an idenfitier for your database. Some users have reported issues using the database key, but have been successful using path instead.

read_only

required

Indicate users' access by providing a boolean value: true or false

Test the data source connection

To confirm that you have correctly configured the connection details for the data source(s) in your configuration YAML file, use the test-connection command. If you wish, add a -V option to the command to return results in verbose mode in the CLI.

soda test-connection -d my_datasource -c configuration.yml -V

Supported data types

Category
Data type

text

CHARACTER VARYING, CHARACTER, CHAR, TEXT

number

SMALLINT, INTEGER, BIGINT, DECIMAL, NUMERIC, VARIABLE, REAL, DOUBLE PRECISION, SMALLSERIAL, SERIAL, BIGSERIAL

time

TIMESTAMP, DATE, TIME, TIMESTAMP WITH TIME ZONE, TIMESTAMP WITHOUT TIME ZONE, TIME WITH TIME ZONE, TIME WITHOUT TIME ZONE

Last updated

Was this helpful?