Counterpartyが保存しているデータ一覧
はじめに
以前の記事にも書きましたが、CounterpartydはSQLite、CounterblockdはMongoDBをデータストアとして利用しています。各データストアに保存されているデータを見てみます。
目次
- SQLite3
- MongoDB
SQLite3
DBファイル保存場所
/home/xcp/.config/counterpartyd/counterpartyd.9.db
テーブル一覧
SELECT name FROM sqlite_master WHERE type='table';
blocks
transactions
callbacks
debits
credits
balances
assets
sends
destructions
orders
order_matches
order_expirations
order_match_expirations
btcpays
issuances
broadcasts
bets
bet_matches
bet_expirations
bet_match_expirations
bet_match_resolutions
contracts
executions
storage
suicides
nonces
postqueue
dividends
burns
cancels
rps
rps_matches
rps_expirations
rps_match_expirations
rpsresolves
messages
mempool
MongoDB
$ mongo > use counterblockd; > show collections;
app_config
asset_extended_info
asset_market_info
asset_marketcap_history
asset_pair_market_info
balance_changes
btc_open_orders
chat_handles
chat_history
feeds
login_history
mempool
preferences
processed_blocks
system.indexes
tracked_assets
trades
transaction_stats
wallet_stats
クエリー例
> db.asset_market_info.find().limit(1); { "_id" : ObjectId("5497dd47db30f9da5a3d1ff4"), "asset" : "UNDOGM", "price_in_xcp" : null, "aggregated_price_as_xcp" : null, "market_cap_in_xcp" : null, "aggregated_price_as_btc" : null, "market_cap_in_btc" : null, "aggregated_price_in_btc" : null, "price_in_btc" : null, "aggregated_price_in_xcp" : null, "price_as_btc" : null, "total_supply" : 42000, "price_as_xcp" : null }
まとめ
現在、SQLite3からLevelDBへの変更が議論されています。
Move from SQLite3 (apsw) to LevelDB (plyvel)?