MCPcopy Create free account
hub / github.com/ActiveState/code / execute

Method execute

recipes/Python/106131_DBAttrib/recipe-106131.py:30–34  ·  view source on GitHub ↗
(self,sql,*args,**kws)

Source from the content-addressed store, hash-verified

28 return results
29
30 def execute(self,sql,*args,**kws):
31 if sql[0:6] == "select":
32 return self.executeQuery(sql,*args,**kws)
33 else:
34 self.executeUpdate(sql,*args,**kws)
35
36class DBAttrib(DBCore):
37 """Provides magic for getting and setting attributes

Callers 8

recipe-171463.pyFile · 0.45
runqueryFunction · 0.45
recipe-65235.pyFile · 0.45
__call__Method · 0.45
executeUpdateMethod · 0.45
executeQueryMethod · 0.45
_db_get_attrMethod · 0.45
_db_set_attrMethod · 0.45

Calls 2

executeQueryMethod · 0.95
executeUpdateMethod · 0.95

Tested by

no test coverage detected