cfxdb.xbrmm.schema¶
Classes¶
CFC edge database schema for ZLMDB. |
Module Contents¶
- class Schema(db)[source]¶
Bases:
objectCFC edge database schema for ZLMDB.
- static attach(db)[source]¶
Factory to create a schema from attaching to a database. The schema tables will be automatically mapped as persistant maps and attached to the database slots.
- Parameters:
db – zlmdb.Database
- Returns:
object of Schema
- consents: cfxdb.xbr.consent.Consents[source]¶
XBR data consents.
- idx_consent_by_member_adr: cfxdb.xbr.consent.IndexConsentByMemberAddress[source]¶
Consents-by-members-address index with
(member_adr|bytes[20], joined|int) -> member_adr|UUIDmapping.
- idx_offer_by_key: cfxdb.xbrmm.offer.IndexOfferByKey[source]¶
Index of key offers by key ID (rather than offer ID, as the object table is indexed by).
- idx_paying_channel_by_delegate: cfxdb.xbrmm.channel.IndexPayingChannelByDelegate[source]¶
Maps from XBR provider delegate address to the currently active paying channel address for the given provider delegate.
- idx_paying_channel_by_recipient: cfxdb.xbrmm.channel.IndexPayingChannelByRecipient[source]¶
Maps from XBR recipient address to the currently active paying channel address for the given recipient.
- idx_payment_channel_by_actor: cfxdb.xbrmm.channel.IndexPaymentChannelByActor[source]¶
Maps from XBR consumer actor address to the currently active payment channel address for the given consumer actor.
- idx_payment_channel_by_delegate: cfxdb.xbrmm.channel.IndexPaymentChannelByDelegate[source]¶
Maps from XBR consumer delegate address to the currently active payment channel address for the given consumer delegate.
- idx_user_key_by_member: cfxdb.xbrmm.userkey.IndexUserKeyByMember[source]¶
Index “by pubkey” of user keys
xbrmm.IndexUserKeyByMember.
- ipfs_files: cfxdb.xbrmm.ipfs_file.IPFSFiles[source]¶
IPFS files download log table
xbrmm.IPFSFiles.
- offers: cfxdb.xbrmm.offer.Offers[source]¶
Data encryption key offers.
- paying_balances: cfxdb.xbrmm.channel.PayingChannelBalances[source]¶
Current off-chain balances within paying channels.
- paying_channels: cfxdb.xbrmm.channel.PayingChannels[source]¶
Paying channels for XBR provider delegates.
- payment_balances: cfxdb.xbrmm.channel.PaymentChannelBalances[source]¶
Current off-chain balances within payment channels.
- payment_channels: cfxdb.xbrmm.channel.PaymentChannels[source]¶
Payment channels for XBR consumer delegates.
- transactions: cfxdb.xbrmm.transaction.Transactions[source]¶
- user_keys: cfxdb.xbrmm.userkey.UserKeys[source]¶
User client keys database table
xbrmm.UserKeys.