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

Method clone

web/pgadmin/model/__init__.py:361–366  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

359 post_connection_sql = db.Column(db.String(), nullable=True)
360
361 def clone(self):
362 d = dict(self.__dict__)
363 d.pop("id") # get rid of id
364 d.pop("_sa_instance_state") # get rid of SQLAlchemy special attr
365 copy = self.__class__(**d)
366 return copy
367
368
369class ModulePreference(db.Model):

Callers 8

adhoc_connect_serverFunction · 0.95
table.jsFile · 0.80
browser.jsFile · 0.80
onSaveFunction · 0.80
collection.jsFile · 0.80
dataChangeReducerFunction · 0.80
parsePlanFunction · 0.80
setStateFunction · 0.80

Calls 1

popMethod · 0.80

Tested by

no test coverage detected