npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-tidb-cloud

v1.0.3

Published

TiDB Cloud - n8n integration node

Downloads

12

Readme

n8n-nodes-tidb-cloud

This is an n8n community node. It lets you use TiDB Cloud in your n8n workflows.

TiDB Cloud is a MySQL-compatible, fully-managed Database-as-a-Service (DBaaS) that brings everything great about TiDB to your cloud and lets you focus on your applications, not the complexities of your database.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

Credentials

Prerequisites

Create a TiDB Cloud account.

Using API Key

  1. Access your TiDB Cloud dashboard.
  2. Click Organization > Organization Settings in the upper-right corner.
  3. Click the API Keys tab.
  4. Click the Create API Key button to create a new API Key.
  5. Save the created API key for later use in n8n.

For more information, see TiDB Cloud API Overview.

Support Operation

TiDB Cloud Node acts as a regular node, and only supports the following five operations.

  • Create Serverless Cluster: Create a TiDB Cloud Serverless Tier cluster.
  • Execute SQL: Execute an SQL statement in TiDB.
  • Delete:Delete rows in TiDB.
  • Insert: Insert rows in TiDB.
  • Update: Update rows in TiDB.

Usage

Here is an example usage, click here to find more information.

Fields Description

Different operations require different fields to be filled in. The following shows the respective field descriptions according to the operation.

Create Serverless Cluster

  • Credential for TiDB Cloud API: Only supports TiDB Cloud API key authentication. Refer to Get TiDB Cloud API Key.
  • Project: The TiDB Cloud project name.
  • Operation: The operation of this node. Refer to Support Operation.
  • Cluster: The TiDB Cloud cluster name. Enter one name for your new cluster.
  • Region: The region name. Choose a region where your cluster will be deployed. Usually, choose the region closest to your application deployment.
  • Password: The root password. Set a password for your new cluster.

Execute SQL

  • Credential for TiDB Cloud API: Only supports TiDB Cloud API key authentication. Refer to Get TiDB Cloud API Key.
  • Project: The TiDB Cloud project name.
  • Operation: The operation of this node. Refer to Support Operation.
  • Cluster: The TiDB Cloud cluster name.
  • Password: The password of TiDB Cloud cluster.
  • User: The username of your TiDB Cloud cluster.
  • Database: The database name.
  • SQL: The SQL statement to execute.

Delete

  • Credential for TiDB Cloud API: Only supports TiDB Cloud API key authentication. Refer to Get TiDB Cloud API Key.
  • Project: The TiDB Cloud project name.
  • Operation: The operation of this node. Refer to Support Operation.
  • Cluster: The TiDB Cloud cluster name. In the Create Serverless Cluster operation, you need to enter one name for your new cluster . While in other operations, you should choose one existing cluster.
  • Password: The password of TiDB Cloud cluster.
  • User: The username of your TiDB Cloud cluster.
  • Database: The database name.
  • Table: The table name. You can use From list mode to choose one or Name mode to type table name manually.
  • Delete Key: The Name of the item's property which decides which rows in the database should be deleted. Item is the data sent from one node to another. A node performs its action on each item of incoming data. For more information about item in n8n, see n8n documentation.

Insert

  • Credential for TiDB Cloud API: Only supports TiDB Cloud API key authentication. Refer to Get TiDB Cloud API Key.
  • Project: The TiDB Cloud project name.
  • Operation: The operation of this node. Refer to Support Operation.
  • Cluster: The TiDB Cloud cluster name. In the Create Serverless Cluster operation, you need to enter one name for your new cluster . While in other operations, you should choose one existing cluster.
  • Password: The password of TiDB Cloud cluster.
  • User: The username of your TiDB Cloud cluster.
  • Database: The database name.
  • Table: The table name. You can use From list mode to choose one or Name mode to type table name manually.
  • Columns: The comma-separated list of the input item's property which should used as columns for the new rows. Item is the data sent from one node to another. A node performs its action on each item of incoming data. For more information about item in n8n, see n8n documentation.

Update

  • Credential for TiDB Cloud API: Only supports TiDB Cloud API key authentication. Refer to Get TiDB Cloud API Key.
  • Project: The TiDB Cloud project name.
  • Operation: The operation of this node. Refer to Support Operation.
  • Cluster: The TiDB Cloud cluster name. In the Create Serverless Cluster operation, you need to enter one name for your new cluster. While in other operations, you should choose one existing cluster.
  • Password: The password of TiDB Cloud cluster.
  • User: The username of your TiDB Cloud cluster.
  • Database: The database name.
  • Table: The table name. You can use From list mode to choose one or Name mode to type table manually.
  • Update Key: The name of the item's property which decides which rows in the database should be updated. Item is the data sent from one node to another. A node performs its action on each item of incoming data. For more information about item in n8n, see n8n documentation.
  • Columns: The comma-separated list of the input item which should used as columns for the rows to update.

Limitations

  1. Normally only one SQL statement is allowed in the Execute SQL operation. If you want to execute more than one statement in a single operation, you need to manually enable tidb_multi_statement_mode.
  2. The Delete and Update operation need to specify one field as a key. For example, the Delete Key is set to id, which is equivalent to executing delete from table where id = ${item.id}. Currently, it only supports specifying one key.
  3. The Insert and Update operation need to specify the comma-separated list in the Columns field, and the field name must be the same as the input item's property.

Resources