credmark.cmf.types.ledger.LedgerTable

class LedgerTable(**kwargs)[source]

Bases: object

Base class for ledger data tables

A mixin class with LedgerQuery to create class LedgerQuery{Table}

Methods

as_

describe

Attributes

alias

bigint_cols

colnames

Return the set of column names in the table.

columns

Return the set of column names for the table.

table_key

property colnames: List[str]

Return the set of column names in the table. They can be used in the query.

property columns: List[str]

Return the set of column names for the table. They will be used in the database.

For contract ledger tables, the set will include all contract-specific columns.