delta_trace_db.query.query_execution_result

Classes

QueryExecutionResult(is_success)

(en) An abstract class for handling both QueryResult and TransactionQueryResult collectively.

class delta_trace_db.query.query_execution_result.QueryExecutionResult(is_success: bool)

Bases: CloneableFile, ABC

(en) An abstract class for handling both QueryResult and TransactionQueryResult collectively.

(ja) QueryResult と TransactionQueryResult の両方を まとめて処理するための抽象クラス。

Parameters:

is_success (bool) – A flag indicating whether the operation was successful. This also changes depending on the value of the optional argument mustAffectAtLeastOne when creating a query. When mustAffectAtLeastOne is true, if the number of operation targets is 0, it will be treated as an error and the value will be false. When false, the value will be true even if the number of updates is 0. In other cases, if an exception occurs internally, it will be treated as an error.

abstractmethod clone() CloneableFile

(en) Returns a deep copy of this object.

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

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

(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

abstractmethod 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を連鎖的に呼び出すようにしてください。