Web3 Engineering Docs
  • 👋Welcome to the W3E docs
  • Overview
    • Product overview
    • 🤿Indexer
      • Database tables
      • Clickhouse queries (DBeaver)
      • Query Timeout
      • Duplicate rows
    • 🤿On-chain AI helper
    • 🤿Reliable SOL Yield
      • Staking SOL basics
    • 🤿Data Streaming Node
    • 🤿Consulting services
    • 🤿On-chain community
    • 🔑Contact info
Powered by GitBook
On this page
  • Setting up DBeaver
  • How to Generate the Database Schema?
  1. Overview
  2. Indexer

Clickhouse queries (DBeaver)

PreviousDatabase tablesNextQuery Timeout

Last updated 1 month ago

DBeaver is a powerful, open-source tool for managing and querying Clickhouse databases. Its intuitive interface allows you to connect to the Indexer’s database, write and execute Clickhouse queries, and analyze results with ease. This chapter guides you through setting up DBeaver, exploring table schemas, and running queries to extract actionable insights tailored to your analytical needs.

Setting up DBeaver

To start querying the indexer’s Clickhouse database, follow these steps to configure DBeaver:

  1. Install DBeaver: Download and install the latest version of DBeaver Community Edition from .

  2. Create a New Connection:

    • Open DBeaver and click Database > New Connection.

    • Select Clickhouse from the list of drivers. If the driver isn’t available, download it via DBeaver’s driver manager.

  3. Enter Connection Details:

    • Use the server link below, login, and password provided (server link: )

    • Set the database name to the one specified in your credentials.

    • Test the connection to ensure it’s successful.

  4. Save and Connect: Save the configuration and connect to the database. You’ll see the database schema in DBeaver’s Database Navigator.

How to Generate the Database Schema?

Understanding the database structure is key to writing effective queries. To generate a table’s schema:

  1. Navigate to the database and select the table for which you want to generate the SQL schema.

  2. Right-click on the table and choose Generate SQL.

  3. Select DDL (Data Definition Language) to generate the table’s structure as a SQL statement.

  4. The SQL script will be automatically generated, showing the table’s structure.

Once you’ve generated the schema, you can write complex queries to select and filter relevant data from the tables, perform calculations, and extract necessary information. This allows you to manipulate and analyze the data according to your specific needs.

With the schema in hand, you can write Clickhouse queries to extract and analyze data.

Check out SQL query examples for and

🤿
dbeaver.io
https://chess-beta.api.web3engineering.co.uk:28123
Pump.fun AMM migration
Meteora swaps.