KM(Key Manager) is a tool for decoding TiDB format keys.

Introduction

KM(Key Manager) is a tool for decoding TiDB format keys.

Usage

decode-stream

The tool is for decoding the KV stream format generated by stream backup.

build (Aha, no Makefiles yet.):

build -o decode-stream cmd/decodestream/main.go

usage:

> decode-stream --file 00000274_00000920_write_Put.temp.log | head
Index(table=274, index=1, index_data=[9 1])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000051
Index(table=274, index=1, index_data=[9 2])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000052
Index(table=274, index=1, index_data=[9 3])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000053
Index(table=274, index=1, index_data=[9 4])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000054
Index(table=274, index=1, index_data=[9 5])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000055
Index(table=274, index=1, index_data=[9 6])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000056
Index(table=274, index=1, index_data=[9 7])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000057
Index(table=274, index=1, index_data=[9 8])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000058
Index(table=274, index=1, index_data=[9 9])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb0576080000000000000059
Index(table=274, index=1, index_data=[9 10])@(phy=2021-12-28 01:03:19,log=3) => 508280e0dcacecfcfb057608000000000000005a

(Doc of other tools TBD)

Owner
山岚
不自由且无用的灵魂。
山岚
Similar Resources

moss - a simple, fast, ordered, persistable, key-val storage library for golang

moss provides a simple, fast, persistable, ordered key-val collection implementation as a 100% golang library.

Dec 18, 2022

Pogreb is an embedded key-value store for read-heavy workloads written in Go.

Pogreb is an embedded key-value store for read-heavy workloads written in Go.

Embedded key-value store for read-heavy workloads written in Go

Dec 29, 2022

HA LDAP based key/value solution for projects configuration storing with multi master replication support

Recon is the simple solution for storing configs of you application. There are no specified instruments, no specified data protocols. For the full power of Recon you only need curl.

Jun 15, 2022

RocksDB/LevelDB inspired key-value database in Go

Pebble Nightly benchmarks Pebble is a LevelDB/RocksDB inspired key-value store focused on performance and internal usage by CockroachDB. Pebble inheri

Dec 29, 2022

Key-value database stored in memory with option of persistence

Key-value database stored in memory with option of persistence

Easy and intuitive command line tool allows you to spin up a database avaliable from web or locally in a few seconds. Server can be run over a custom TCP protocol or over HTTP.

Aug 1, 2022

Fault tolerant, sharded key value storage written in GoLang

Fault tolerant, sharded key value storage written in GoLang

Ravel is a sharded, fault-tolerant key-value store built using BadgerDB and hashicorp/raft. You can shard your data across multiple clusters with mult

Nov 1, 2022

CrankDB is an ultra fast and very lightweight Key Value based Document Store.

CrankDB is a ultra fast, extreme lightweight Key Value based Document Store.

Apr 12, 2022

Turn any key/value index into a high-performance two-dimensional spatial index

Turn any key/value index into a high-performance two-dimensional spatial index

modular-spatial-index For the demo that this animated gif was generated from

Mar 6, 2022

yakv is a simple, in-memory, concurrency-safe key-value store for hobbyists.

yakv is a simple, in-memory, concurrency-safe key-value store for hobbyists.

yakv (yak-v. (originally intended to be "yet-another-key-value store")) is a simple, in-memory, concurrency-safe key-value store for hobbyists. yakv provides persistence by appending transactions to a transaction log and restoring data from the transaction log on startup.

Feb 24, 2022
Related tags
Golang-key-value-store - Key Value Store API Service with Go DDD Architecture

This document specifies the tools used in the Key-Value store and reorganizes how to use them. In this created service, In-Memory Key-Value Service was created and how to use the API is specified in the HTML file in the folder named "doc"

Jul 31, 2022
An embedded key/value database for Go.

Bolt Bolt is a pure Go key/value store inspired by Howard Chu's LMDB project. The goal of the project is to provide a simple, fast, and reliable datab

Dec 30, 2022
A disk-backed key-value store.

What is diskv? Diskv (disk-vee) is a simple, persistent key-value store written in the Go language. It starts with an incredibly simple API for storin

Jan 1, 2023
Distributed reliable key-value store for the most critical data of a distributed system

etcd Note: The master branch may be in an unstable or even broken state during development. Please use releases instead of the master branch in order

Dec 28, 2022
Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service.

Olric Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service. With

Jan 4, 2023
Simple, ordered, key-value persistence library for the Go Language

gkvlite gkvlite is a simple, ordered, ACID, key-value persistence library for Go. Overview gkvlite is a library that provides a simple key-value persi

Dec 21, 2022
LevelDB key/value database in Go.

This is an implementation of the LevelDB key/value database in the Go programming language. Installation go get github.com/syndtr/goleveldb/leveldb R

Jan 9, 2023
Distributed, fault-tolerant key-value storage written in go.
Distributed, fault-tolerant key-value storage written in go.

A simple, distributed, fault-tolerant key-value storage inspired by Redis. It uses Raft protocotol as consensus algorithm. It supports the following data structures: String, Bitmap, Map, List.

Jan 3, 2023
a persistent real-time key-value store, with the same redis protocol with powerful features
a persistent real-time key-value store, with the same redis protocol with powerful features

a fast NoSQL DB, that uses the same RESP protocol and capable to store terabytes of data, also it integrates with your mobile/web apps to add real-time features, soon you can use it as a document store cause it should become a multi-model db. Redix is used in production, you can use it in your apps with no worries.

Dec 25, 2022
GhostDB is a distributed, in-memory, general purpose key-value data store that delivers microsecond performance at any scale.
GhostDB is a distributed, in-memory, general purpose key-value data store that delivers microsecond performance at any scale.

GhostDB is designed to speed up dynamic database or API driven websites by storing data in RAM in order to reduce the number of times an external data source such as a database or API must be read. GhostDB provides a very large hash table that is distributed across multiple machines and stores large numbers of key-value pairs within the hash table.

Jan 6, 2023