cfxdb.meta.attribute

Classes

Attribute

Generic meta-data attributes that can be stored on objects in tables.

Attributes

Generic meta-data attributes that can be stored on objects in tables. Primary key of this table is (table_oid, object_oid, attribute).

_AttributeGen

Expand methods on the class code generated by flatc.

Module Contents

class Attribute(from_fbs=None)[source]

Bases: object

Generic meta-data attributes that can be stored on objects in tables.

__str__()[source]
_attribute = None[source]
_from_fbs = None[source]
_modified = None[source]
_object_oid = None[source]
_table_oid = None[source]
_value = None[source]
property attribute: str[source]

Attribute name (part of the key).

build(builder)[source]
static cast(buf)[source]
marshal() dict[source]
property modified: numpy.datetime64[source]

Timestamp when the attribute was last modified (or first created).

property object_oid: uuid.UUID[source]

Object (within the table) holding the attribute.

property table_oid: uuid.UUID[source]

Table of the object holding the attribute.

property value[source]

Arbitrary attribute value, stored CBOR-serialized.

class Attributes(slot=None, compress=None, build=None, cast=None)[source]

Bases: zlmdb.MapUuidUuidStringFlatBuffers

Generic meta-data attributes that can be stored on objects in tables. Primary key of this table is (table_oid, object_oid, attribute).

Map zlmdb.MapUuidUuidStringFlatBuffers from (table_oid, object_oid, attribute) to cfxdb.meta.Attribute

class _AttributeGen[source]

Bases: cfxdb.gen.meta.Attribute.Attribute

Expand methods on the class code generated by flatc.

FIXME: come up with a PR for flatc to generated this stuff automatically.

classmethod GetRootAsAttribute(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.

ObjectOidAsBytes()[source]
TableOidAsBytes()[source]
ValueAsBytes()[source]