Canalx Select Db Json

Fetch MYSQL's data to K-V style data. 通过配置化的SQL语句将 Mysql 中的数据读取到内存中,形成 KV 格式。
Alternatives To Canalx Select Db Json
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Next Blog229
2 years ago6JavaScript
基于react(ssr)服务端框架next.js和antd-design搭建的个人博客
Dms152
a year ago22mitJavaScript
基于Json Schema的动态Json数据配置平台
Go Mysqlpure23
8 years agoJune 03, 20212otherGo
MySQL client library written in pure Go / golang.
Twitter Sentiment Analysis Using Hadoop16
a year ago1Shell
A Project where one can fetch and read tweets and show the analysis like who is most influential
Mypdo14
9 years ago1September 04, 2014apache-2.0PHP
A php asynchronous ORM library for mysql(PDO)
Pm2 Mysql13
4 years ago2mitJavaScript
Mysql module for Keymetrics
Health Checker10
3 years agomitPython
Health Checker is a website that will show you a list of symptoms, and for each symptom the medical conditions that are possible. It can also fetch the treatment online for a particular medical condition and the nearest doctors based on your location. It can also tell you your medical condition from a sentence having a recognizable symptom.
Php Imap Fetcher10
5 years ago3PHP
Open source PHP to fetch or pipe email from a POP box, save the message to MySQL, and save attachments/images locally.
Mysql Wrapping For D Programming Language V28
12 years ago1D
Canalx Select Db Json8
2 years agoJava
Fetch MYSQL's data to K-V style data. 通过配置化的SQL语句将 Mysql 中的数据读取到内存中,形成 KV 格式。
Alternatives To Canalx Select Db Json
Select To Compare


Alternative Project Comparisons
Readme

canalx-select-db-json

Apache License 2 Build Status Coverage Status Maven Central

Fetch MYSQL's data to K-V style data.

SQL Mysql KV

quick start

note: json encoding is using Jackson.

config

<?xml version="1.0" encoding="UTF-8"?>

<configuration>
    <base>
        <driverClass>com.mysql.jdbc.Driver</driverClass>
    </base>

    <dbs dbUrl="jdbc:mysql://localhost:3306?useUnicode=true&amp;characterEncoding=UTF-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true"
         name="test"
         userName="root" password="123456">
        <db>
            <table keyId="id" name="user" initSql="select * from test.user"/>
        </db>

        <db name="test2"
            dbUrl="jdbc:mysql://localhost:3306?useUnicode=true&amp;characterEncoding=UTF-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true"
            userName="root" password="123456">
            <table keyId="id" name="store" initSql="select * from test2.store"/>
        </db>
    </dbs>

</configuration>

code:

@Test
public void test() {

    IDbFetchController dbFetchController = DbFetchControllerFactory.getDefaultDbController();
    
    dbFetchController.init("canalx-db-kv.xml");
    Map<String, Map<String, String>> dbKvs = dbFetchController.getInitDbKv();

    for (String tableId : dbKvs.keySet()) {

        System.out.println("table identify: " + tableId);
        System.out.println("table kv:" + dbKvs.get(tableId));
    }
}

result

table identify: test2.store
table kv:{1={"id":1,"name":"product1","products":100}}
table identify: test.user
table kv:{1={"id":1,"name":"user1","phone":"123456789"}}

Maven

<dependency>
    <groupId>com.github.knightliao.canalx</groupId>
    <artifactId>canalx-select-db-json</artifactId>
    <version>0.0.2</version>
</dependency>
Popular Mysql Projects
Popular Fetch Projects
Popular Data Storage Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Json
Mysql
Fetch
Jackson
Soa