TiDE is a VS Code extension for developing TiDB. It offers IDE, debugging, log search, Kubernetes integration, and VM management for TiDB clusters.
Join the DZone community and get the full member experience. Contributing to TiDB’s codebase is not easy, especially for newbies. As a distributed database, TiDB has multiple components and numerous tools, written in multiple languages, including Go and Rust. Getting started with such a complicated system takes quite an effort. So, in order to welcome newcomers to TiDB and make it easier for them to contribute to our community, we’ve developed a TiDB integrated development environment: TiDE. Created during TiDB Hackathon 2020, TiDE is a Visual Studio Code extension that makes developing TiDB a breeze. With this extension, developing a distributed system can be as easy as developing a local one. In this post, I’ll show you the core features of TiDE and how it smooths out the standard working process for TiDB developers. Let’s get started. As a complicated distributed SQL database system, TiDB has three core components (TiDB, TiKV, and the Placement Driver, or PD) and many ecosystem tools. TiDB and PD are written in Go, whereas TiKV is written in Rust. Imagine you want to get your hands dirty and compile TiDB all by yourself. You need to go through several painful steps: As you can see, the traditional workflow of developing TiDB is a lengthy and tedious process, where most of the effort is wasted in repeated, unpleasant operations. Confucious (a Chinese philosopher and politician) said: „A craftsman must sharpen his tools to do his job.“ That applies to TiDB developers (You!) as well. To reduce tedious work and improve efficiency, automation is a must. TiDE, a VS Code extension, automates your TiDB coding experience inside VS Code. When you enable TiDE, it creates a dedicated workspace for TiDB in VS Code, providing functionality that simplifies the development of TiDB. One of TiDE’s basic features is IDE. Whether you want to develop on a local testing cluster or a production cluster, TiDE can spin up the environment you need in a few clicks. Previously, to get started, you needed to run tiup playground to initiate a testing cluster.