delta_trace_db.query.cause.actor

Functions

deep_collection_equals(a, b)

(en) Deep collection comparison function (equivalent to Dart's DeepCollectionEquality)

Classes

Actor(actor_type, actor_id[, ...])

(en) This class defines the information of the person who requested the database operation.

class delta_trace_db.query.cause.actor.Actor(actor_type: EnumActorType, actor_id: str, collection_permissions: Dict[str, Permission] | None = None, context: Dict[str, Any] | None = None)

Bases: CloneableFile

(en) This class defines the information of the person who requested the database operation.

(ja) データベースの操作をリクエストした者の情報を定義するクラスです。

Parameters:
  • actor_type (EnumActorType) – The actor type. Choose from HUMAN, AI, or SYSTEM.

  • actor_id (str) – The serial id (user id) of the actor.

  • collection_permissions (Optional[Dict[str, Permission]]) – Collection-level permissions that relate only to database operations. The key is the collection name.

  • context (Optional[Dict[str, Any]]) – The other context.

className = 'Actor'
clone() Actor

(en) Returns a deep copy of this object.

(ja) このオブジェクトのディープコピーを返します。

classmethod from_dict(src: Dict[str, Any]) Actor

(en) Restore this object from the dictionary.

(ja) このオブジェクトを辞書から復元します。

Parameters:

src (Dict[str, Any]) – A dictionary made with to_dict of this class.

Returns:

復元されたオブジェクト

Return type:

CloneableFile

to_dict() Dict[str, Any]

(en) Convert the object to a dictionary. The returned dictionary can only contain primitive types, null, lists or maps with only primitive elements. If you want to include other classes, the target class should inherit from this class and chain calls to_dict.

(ja) このオブジェクトを辞書に変換します。 戻り値の辞書にはプリミティブ型かプリミティブ型要素のみのリスト またはマップ等、そしてNoneのみを含められます。 それ以外のクラスを含めたい場合、対象のクラスもこのクラスを継承し、 to_dictを連鎖的に呼び出すようにしてください。

version = '5'
delta_trace_db.query.cause.actor.deep_collection_equals(a: Any, b: Any) bool

(en) Deep collection comparison function (equivalent to Dart’s DeepCollectionEquality)

(ja) 深いコレクション比較用関数(Dart の DeepCollectionEquality 相当)

Parameters:
  • a (Any) – Comparison object A.

  • b (Any) – Comparison object B.