MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / delete_database

Method delete_database

mod/project/proxy/base.py:307–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

305 public.M('sites').insert(pdata)
306
307 def delete_database(self):
308 if public.M('sites').where('name=?', (self.config.listen,)).count():
309 public.M('sites').where('name=?', (self.config.listen,)).delete()
310
311 @abstractmethod
312 def delete_allow(self, request: StreamRequest):

Callers 1

save_databaseMethod · 0.95

Calls 4

countMethod · 0.45
whereMethod · 0.45
MMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected