latttice Learning library
DUCK01Duck DB · Structured data
Open Latttice
INTERACTIVE STEP-BY-STEP GUIDE

Connect Duck DB to Latttice

Learn the workflow for a structured data source named Duck DB Banking Demo. Review its setup, test access, then connect and verify the saved source in Data Sources.

—action checkpoints
6 minat your pace
Duck DBstructured connection
Guided steps · about 6 minutes

Captions point to each control. The yellow action button stays in view.

Practise without an account or real connection values. The guide requests only the example source name and creates no live source. Follow along in Latttice with an approved running DuckDB server, its read token and permission to add the source.

Example source: Duck DB Banking DemoEnter real connection details only in the official Latttice app.

CONNECT YOUR STRUCTURED DATA DUCK01
Choose Duck DB→Test→Connect
The Duck DB connection form in Latttice, showing Duck DB Banking Demo.
✓
Test before you connect.Name the source. Test access. Verify the result.
STRUCTURED DATA SOURCE DUCK DB SERVER
LEARN BY DOING

Choose Duck DB. Name the source. Test, connect and verify.

Guide overview

Add Duck DB Banking Demo using the approved Bank DuckDB Demo setup. Review the server host, TLS port, schema, read token and optional certificate trust configuration, then test metadata and live reads, connect and verify the saved structured source. The recorded creation succeeded with four tables and 49 columns. Browser practice creates no live source.

Beginner · About 6 minutes · 9 guided steps

What you will learn

  • Open the structured data source workflow and choose Duck DB.
  • Name the source Duck DB Banking Demo, review catalog duck_db_banking_demo and identify the approved running server host, TLS port and schema.
  • Use the approved authentication token with read access only in Latttice, preserve TLS server identity verification and test metadata and live reads before connecting.
  • Connect the source, then verify its saved name, DuckDB connector, connected status and Structured type. The recorded result contains four tables and 49 columns in bank_demo.

Before you start

Browser practice: No account or real credentials required. Practise with genuine product screens and checks in this browser. Practice records learning progress, creates no live source and does not collect authentication secrets.

Follow along in Latttice: A signed-in Latttice session, permission to add a data source and an approved running DuckDB server with its TLS hostname and port, schema and authentication token with read access. The example reuses Bank DuckDB Demo. Enter real connection values only in the official Latttice app. Keep TLS server identity verification enabled; use the optional administrator-approved public CA certificate only when the server uses a private CA, and leave it empty for a publicly trusted server. This connector connects to a running DuckDB server rather than uploading a database file. Follow-along checkpoints are self-confirmed; test and verify the actual connection in Latttice.

Read the 9-step workflow

This written reference follows the same example as the interactive tour. Practice records progress in your browser; complete and verify live actions in your authorised Latttice workspace.

  1. Start a new data source connection.

    The Data Sources section is where you add and manage connections for Latttice data products.

    • Open Data Sources in Latttice.
    • Select Connect Source to begin.

    Check: The source selection screen opens in Latttice.

  2. Choose the Duck DB connector.

    Choose Structured Data, then Duck DB. This connector accesses a running DuckDB server through Quack over TLS.

    • Choose Structured Data in the source selector.
    • Select Duck DB.

    Check: The Configure Duck DB Connection form opens.

  3. Name it Duck DB Banking Demo.

    Enter the Source Name and required Catalog Name separately. The optional description can explain what this banking connection contains.

    • Enter Duck DB Banking Demo in Source Name.
    • Enter duck_db_banking_demo in Catalog Name.

    Check: The Source Name and Catalog Name are separate fields.

  4. Use the approved DuckDB server.

    Enter Server Host, TLS Port and Schema Name. The reference shows native examples and defaults: port 9494 and schema main. This banking demo uses bank_demo; use your approved server settings.

    • Enter the approved Server Host and TLS Port.
    • Set Schema Name to bank_demo for this banking demo.

    Check: This demo uses bank_demo; main is the form default.

  5. Use the approved read token.

    Enter the Quack read token in Authentication Token only in Latttice. TLS verifies the server identity. Use the optional public CA certificate only when the server uses a private certificate authority.

    • Enter the approved Authentication Token in Latttice.
    • For a private CA, ask the administrator for its public CA certificate.
    • Leave CA Certificate empty for a publicly trusted server.

    Check: CA Certificate is optional. Never enter a private key.

  6. Test before adding the source.

    The verified demo test reported: ‘Connected. Verified 4 DuckDB tables and live reads over TLS.’ The capture shows the controls on an unfilled reference form. Test your own approved connection successfully before adding it.

    • Select Test Connection in Latttice.
    • Read the result; correct failures and test again.
    • Continue only after a successful test.

    Check: Verified test: 4 DuckDB tables · live reads over TLS.

  7. Add the source after a successful test.

    The demo creation succeeded with four tables and 49 columns. This reference shows Connect Source disabled before testing. Use it when available after your own test succeeds, then review the creation result.

    • Wait for a successful Test Connection result.
    • Select Connect Source when it is available.
    • Wait for and review the creation result.

    Check: Testing alone does not add the source.

  8. Find Duck DB Banking Demo.

    Duck DB Banking Demo is saved with the Duckdb connector, connected status and Structured type. View Data confirmed four tables and 49 columns in bank_demo. Check the expected tables before building a product.

    • Find Duck DB Banking Demo in Data Sources.
    • Check Duckdb, connected and Structured.
    • Select View Data; check the expected tables.

    Check: Verified result: 4 tables · 49 columns · bank_demo.

  9. Duck DB workflow, complete.

    Duck DB Banking Demo connected successfully. Its test verified four DuckDB tables and live reads over TLS. Creation and View Data confirmed four tables and 49 columns in bank_demo. Your browser practice records learning progress only.

    • Keep your connection checklist.
    • Select Next recommended tour.

    Check: 4 tables · 49 columns · bank_demo.

Explore all Latttice guides →

Product captures · browser-local practice

latttice.app / data-sources · Duck DB
DO THIS STEP

What to do

    CHECK

    Enlarged application capture