-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.sql
More file actions
31 lines (30 loc) · 667 Bytes
/
Copy pathdb.sql
File metadata and controls
31 lines (30 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
drop TABLE sonm.transactions;
CREATE TABLE sonm.transactions (
date Date,
timestamp UInt64,
hash String,
blockNumber UInt64,
value String,
gasUsed UInt64,
gasPrice UInt64,
nonce UInt64,
to String,
from String
) ENGINE = MergeTree(date, hash, 8192);
drop TABLE sonm.blocks;
CREATE TABLE sonm.blocks (
date Date,
number UInt64,
timestamp UInt64,
hash String,
parentHash String,
uncleHash String,
minedBy String,
gasUsed UInt64,
gasLimit UInt64,
nonce UInt64,
size String,
transactionsCount UInt64,
difficulty UInt64,
extra String
) ENGINE = MergeTree(date, number, 8192);