Skip to content

zmitton/EthQL

 
 

Repository files navigation

Adding SQL as a side DB while continuing regular levelDB + trie stuff

file: database.go

NewLDBDatabase

reimplemented it to create a sql DB as well

put

remember to overwrite keys. keys should be unique and indexed

get

delete

close

batch?

file: node.go

OpenDatabase

file: service.go

OpenDatabase

file: unknown

There is a function for switching heads. We need to shim inside this and mark any orphaned data in the DB as such. Its the only way to determine it is no longer relevant(deleted). Note: all tables will need an indexed field (blockhash) specifying the blockhash it was last updated or creted or something. would work for tx/r not sure about state yet.

USE

  • make geth
  • ./build/bin/geth --datadir /Users/zacharymitton/Desktop/ethiql-data --fast

About

Ethereum with SQL DB

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 83.4%
  • C 7.2%
  • JavaScript 6.1%
  • C++ 1.0%
  • Assembly 0.5%
  • Java 0.4%
  • Other 1.4%