Skip to content

mbenus/poelScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poelScripts

Python scripts to copy data from redis to mysql

python dependencies

pip3 install redis, pymysql, requests

mysql

CREATE DATABASE poel DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

CREATE TABLE miners ( id INT AUTO_INCREMENT PRIMARY KEY, address VARCHAR(96) not null, created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP );

CREATE TABLE minerhistory ( id INT AUTO_INCREMENT PRIMARY KEY, minerId INT not null, hashes BIGINT not null, lastshare BIGINT not null, balance DOUBLE, created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (minerId) REFERENCES miners(id) );

About

Python scripts to copy data from redis to mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages