cfxdb.meta.schema

Classes

Docs

IndexObjectToDoc

Schema

Generic metadata, like documentation, tags, comments and reactions that

Module Contents

class Docs(slot=None, compress=None, marshal=None, unmarshal=None)[source]

Bases: zlmdb.MapUuidCbor

class IndexObjectToDoc(slot=None, compress=None)[source]

Bases: zlmdb.MapSlotUuidUuid

  • Database index table (object_slot, object_oid) -> doc_oid

  • Table type zlmdb.MapSlotUuidUuid

  • Key type typing.Tuple[int, uuid.UUID]

  • Indexed table cfxdb.mrealmschema.Docs

class Schema(db)[source]

Bases: object

Generic metadata, like documentation, tags, comments and reactions that can be attach on any object with an UUID.

static attach(db)[source]

Attach database schema to database instance.

Parameters:

db (zlmdb.Database) – Database to attach schema to.

attributes: cfxdb.meta.attribute.Attributes[source]

Generic meta data attributes for objects in other tables. Primary key of this table is (table_oid, object_oid, attribute).

db[source]
docs: Docs[source]

Documentation attached to a database object.

  • Database table cfxdb.mrealmschema.Docs

idx_object_to_doc: IndexObjectToDoc[source]

by documented object ID

  • Database table cfxdb.mrealmschema.IndexObjectToDoc

Type:

Index on documentation