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

Method from_str

couchbase/logic/views.py:76–80  ·  view source on GitHub ↗
(cls, value: str)

Source from the content-addressed store, hash-verified

74
75 @classmethod
76 def from_str(cls, value: str) -> ViewOrdering:
77 if value == 'descending':
78 return cls.DESCENDING
79 else:
80 return cls.ASCENDING
81
82
83class ViewErrorMode(Enum):

Callers 4

consistencyMethod · 0.45
orderMethod · 0.45
on_errorMethod · 0.45
namespaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected