Devcloud-go provides a sql-driver for mysql which named devspore driver and a redis client which named devspore client,

Overview

Devcloud-go

Devcloud-go provides a sql-driver for mysql which named devspore driver and a redis client which named devspore client, you can use them with MAS or use them separately. The devspore driver is developed based on go-sql-driver/mysql v1.6.0, the devspore client is developed based on go-redis v8.11.3.
This document introduces how to obtain and use Devcloud-go.


Requirements

  • To use devcloud-go multi datasource disaster recovery capability, you need to create an MAS application in huaweicloud.
  • Devcloud-go requires go 1.14.6 or later, run command go version to check the version of Go.

Install

Run the following command to install Devcloud-go:

go get github.com/huaweicloud/devcloud-go

Code Example


ChangeLog

Detailed changes for each released version are documented in the CHANGELOG.md.


License

This project is under the Apache 2.0 license. See the LICENSE file for details.

Issues
  • Fault injection and Redis double-write

    Fault injection and Redis double-write

    1. package redis add "double-write" strategy mode.
    2. package mock add "Fault injection".
    3. package redis add "Fault injection service".
    4. package mysql add "Fault injection service".
    5. add web package, which is gin-gorm integration.
    opened by feng9797 0
  • Fault injection and Redis double-write

    Fault injection and Redis double-write

    1. package redis add "double-write" strategy mode.
    2. package mock add "Fault injection".
    3. package redis add "Fault injection service".
    4. package mysql add "Fault injection service".
    5. add web package, which is gin-gorm integration.
    opened by feng9797 0
  • Fault injection and Redis double-write

    Fault injection and Redis double-write

    1. package redis add "double-write" strategy mode.
    2. package mock add "Fault injection".
    3. package redis add "Fault injection service".
    4. package mysql add "Fault injection service".
    5. add web package, which is gin-gorm integration.
    opened by feng9797 0
Releases(v1.0.2)
Owner
HUAWEI CLOUD
HUAWEI CLOUD
Redis-shake is a tool for synchronizing data between two redis databases. Redis-shake是一个用于在两个redis之间同步数据的工具,满足用户非常灵活的同步、迁移需求。

RedisShake is mainly used to synchronize data from one redis to another. Thanks to the Douyu's WSD team for the support. 中文文档 English tutorial 中文使用文档

Alibaba 2.3k May 14, 2022
sqlx is a library which provides a set of extensions on go's standard database/sql library

sqlx is a library which provides a set of extensions on go's standard database/sql library. The sqlx versions of sql.DB, sql.TX, sql.Stmt, et al. all leave the underlying interfaces untouched, so that their interfaces are a superset on the standard ones. This makes it relatively painless to integrate existing codebases using database/sql with sqlx.

Jason Moiron 11.9k May 16, 2022
mysql to mysql 轻量级多线程的库表数据同步

goMysqlSync golang mysql to mysql 轻量级多线程库表级数据同步 测试运行 设置当前binlog位置并且开始运行 go run main.go -position mysql-bin.000001 1 1619431429 查询当前binlog位置,参数n为秒数,查询结

null 12 May 6, 2022
go mysql driver, support distributed transaction

Go-MySQL-Driver A MySQL-Driver for Go's database/sql package Features Requirements Installation Usage DSN (Data Source Name) Password Protocol Address

Open Transaction 33 Apr 3, 2022
🐳 A most popular sql audit platform for mysql

?? A most popular sql audit platform for mysql

Henry Yee 6.5k May 21, 2022
Dumpling is a fast, easy-to-use tool written by Go for dumping data from the database(MySQL, TiDB...) to local/cloud(S3, GCP...) in multifarious formats(SQL, CSV...).

?? Dumpling Dumpling is a tool and a Go library for creating SQL dump from a MySQL-compatible database. It is intended to replace mysqldump and mydump

PingCAP 260 May 20, 2022
Go-driver-benchmark - Driver benchmark with golang

We use ClickkHouse for time-series databases, and the driver's performance is ve

null 3 Jan 27, 2022
Query redis with SQL

reqlite reqlite makes it possible to query data in Redis with SQL. Queries are executed client-side with SQLite (not on the redis server). This projec

Augmentable 40 Feb 10, 2022
Go library that stores data in Redis with SQL-like schema

Go library that stores data in Redis with SQL-like schema. The goal of this library is we can store data in Redis with table form.

kaharman 2 Mar 14, 2022
sqlcomment is an ent driver that adds SQL comments following sqlcommenter specification.

sqlcomment sqlcomment is an ent driver that adds SQL comments following sqlcommenter specification. sqlcomment includes support for OpenTelemetry and

ariga 44 Apr 20, 2022
Attach hooks to any database/sql driver

sqlhooks Attach hooks to any database/sql driver. The purpose of sqlhooks is to provide a way to instrument your sql statements, making really easy to

Gustavo Chaín 548 May 20, 2022
BigQuery database/sql golang driver

BigQuery SQL Driver This library is compatible with Go 1.17+ Please refer to CHA

Viant, Inc 3 Feb 8, 2022
Otelsql - OpenTelemetry SQL database driver wrapper for Go

OpenTelemetry SQL database driver wrapper for Go Add a OpenTelemetry wrapper to

Nhat 20 May 11, 2022
Google Cloud Spanner driver for Go's database/sql package.

go-sql-spanner Google Cloud Spanner driver for Go's database/sql package. This support is currently in the Preview release status. import _ "github.co

Google APIs 43 May 19, 2022
Parses a file and associate SQL queries to a map. Useful for separating SQL from code logic

goyesql This package is based on nleof/goyesql but is not compatible with it any more. This package introduces support for arbitrary tag types and cha

null 0 Oct 20, 2021
write APIs using direct SQL queries with no hassle, let's rethink about SQL

SQLer SQL-er is a tiny portable server enables you to write APIs using SQL query to be executed when anyone hits it, also it enables you to define val

Mohammed Al Ashaal 2k May 8, 2022
Go-sql-reader - Go utility to read the externalised sql with predefined tags

go-sql-reader go utility to read the externalised sql with predefined tags Usage

null 0 Jan 25, 2022
Interactive client for PostgreSQL and MySQL

dblab Interactive client for PostgreSQL and MySQL. Overview dblab is a fast and lightweight interactive terminal based UI application for PostgreSQL a

Daniel Omar Vergara Pérez 185 Mar 29, 2022