MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / profile

Method profile

couchbase/logic/n1ql.py:548–561  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

546
547 @property
548 def profile(self) -> QueryProfile:
549 value = self._params.get(
550 'profile', None
551 )
552
553 if value is None:
554 return QueryProfile.OFF
555 if isinstance(value, str):
556 if value == 'off':
557 return QueryProfile.OFF
558 elif value == 'phases':
559 return QueryProfile.PHASES
560 else:
561 return QueryProfile.TIMINGS
562
563 @profile.setter
564 def profile(self, value # type: Union[QueryProfile, str]

Callers 6

Calls 3

set_optionMethod · 0.95
getMethod · 0.45

Tested by 6