We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0dc8ad commit 40dd508Copy full SHA for 40dd508
lib/mysqlx/crud.py
@@ -79,6 +79,22 @@ def get_name(self):
79
"""
80
return self._name
81
82
+ def exists_in_database(self):
83
+ """Verifies if this object exists in the database.
84
+
85
+ Returns:
86
+ bool: `True` if object exists in database.
87
88
+ Raises:
89
+ NotImplementedError: This method must be implemented.
90
+ """
91
+ raise NotImplementedError
92
93
+ def am_i_real(self):
94
+ return self.exists_in_database()
95
96
+ def who_am_i(self):
97
+ return self.get_name()
98
99
class Schema(DatabaseObject):
100
"""A client-side representation of a database schema. Provides access to
0 commit comments