MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / __init__

Method __init__

couchbase/options.py:1734–1760  ·  view source on GitHub ↗

Configuration for Transactions. Args: durability (:class:`ServerDurability`, optional): Desired durability level for all transaction operations. cleanup_window (timedelta, optional): The query metadata is cleaned up over a the cleanup_window. L

(self,
                 durability=None,   # type: Optional[ServerDurability]
                 cleanup_window=None,  # type: Optional[timedelta]
                 kv_timeout=None,  # type: Optional[timedelta]
                 expiration_time=None,  # type: Optional[timedelta]
                 cleanup_lost_attempts=None,  # type: Optional[bool]
                 cleanup_client_attempts=None,  # type: Optional[bool]
                 metadata_collection=None,  # type: Optional[TransactionKeyspace]
                 scan_consistency=None  # type: Optional[QueryScanConsistency]
                 )

Source from the content-addressed store, hash-verified

1732
1733 @overload
1734 def __init__(self,
1735 durability=None, # type: Optional[ServerDurability]
1736 cleanup_window=None, # type: Optional[timedelta]
1737 kv_timeout=None, # type: Optional[timedelta]
1738 expiration_time=None, # type: Optional[timedelta]
1739 cleanup_lost_attempts=None, # type: Optional[bool]
1740 cleanup_client_attempts=None, # type: Optional[bool]
1741 metadata_collection=None, # type: Optional[TransactionKeyspace]
1742 scan_consistency=None # type: Optional[QueryScanConsistency]
1743 ):
1744 """
1745 Configuration for Transactions.
1746
1747 Args:
1748 durability (:class:`ServerDurability`, optional): Desired durability level for all transaction operations.
1749 cleanup_window (timedelta, optional): The query metadata is cleaned up over a the cleanup_window.
1750 Longer windows mean less background activity, shorter intervals will clean things faster.
1751 kv_timeout: (timedelta, optional): **DEPRECATED** Currently a no-op. KV operation timeout.
1752 expiration_time: (timedelta, optional): **DEPRECATED** Use timeout instead. Maximum amount of time a transaction can take before rolling back.
1753 cleanup_lost_attempts: (bool, optional): If False, then we don't do any background cleanup.
1754 cleanup_client_attempts: (bool, optional): if False, we don't do any cleanup as a transaction finishes.
1755 metadata_collection: (:class:`couchbase.transactions.TransactionKeyspace, optional): All transaction
1756 metadata uses the specified bucket/scope/collection.
1757 scan_consistency: (:class:`QueryScanConsistency`, optional): Scan consistency to use for all transactional
1758 queries.
1759 timeout: (timedelta, optional): Maximum amount of time a transaction can take before rolling back.
1760 """ # noqa: E501
1761
1762 def __init__(self, # noqa: C901
1763 **kwargs # type: dict[str, Any]

Callers

nothing calls this directly

Calls 5

option_deprecatedMethod · 0.80
popMethod · 0.45
itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected