Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asiniscalchi/eosio_sql_plugin
EOSIO sql database plugin
https://github.com/asiniscalchi/eosio_sql_plugin
db2 eos eosio firebird mysql odbc oracle postgresql sql sqlite
Last synced: 14 days ago
JSON representation
EOSIO sql database plugin
- Host: GitHub
- URL: https://github.com/asiniscalchi/eosio_sql_plugin
- Owner: asiniscalchi
- License: mit
- Archived: true
- Created: 2018-08-03T10:16:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-02T13:20:50.000Z (about 6 years ago)
- Last Synced: 2024-07-31T16:33:30.887Z (3 months ago)
- Topics: db2, eos, eosio, firebird, mysql, odbc, oracle, postgresql, sql, sqlite
- Language: C++
- Homepage:
- Size: 102 KB
- Stars: 20
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eosio_sql_plugin
EOSIO plugin to register blockchain data into an SQL database supported by SOCI ( https://github.com/SOCI/soci )**You need to compile EOSIO from source: additional plugins are linked statically**
on ubuntu 18.04 install the package libsoci-dev
```
$ sudo apt install libsoci-dev
```
add the following param on EOSIO cmake execution:
```
-DEOSIO_ADDITIONAL_PLUGINS=
```
compile and run.
```
$ nodeos --help....
Config Options for eosio::sql_db_plugin:
--sql_db-queue-size arg (=256) The queue size between nodeos and SQL
DB plugin thread.
--sql_db-block-start arg (=0) The block to start sync.
--sql_db-uri arg Sql DB URI connection string If not
specified then plugin is disabled.
Default database 'EOS' is used if not
specified in URI.
--sql_db-schema schema (=public) Sql DB Schema setting string
Enabled for PostgreSQL only.
Defaults to 'public'.
....
```