MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / _user_column_name

Method _user_column_name

web/pgadmin/model/__init__.py:82–90  ·  view source on GitHub ↗

Return the column name string ('user_id' or 'uid').

(cls)

Source from the content-addressed store, hash-verified

80
81 @classmethod
82 def _user_column_name(cls):
83 """Return the column name string ('user_id' or 'uid')."""
84 if hasattr(cls, 'user_id'):
85 return 'user_id'
86 if hasattr(cls, 'uid'):
87 return 'uid'
88 raise AttributeError(
89 f"{cls.__name__} has no user_id or uid column"
90 )
91
92 @classmethod
93 def for_user(cls, user_id=None, **kwargs):

Callers 1

for_userMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected