pymensago/workspace.py
def remove_workspace_entry(self, wid: UUID, domain: Domain) -> RetVal:
		'''
		Removes a workspace from the storage database.
		NOTE: this only removes the workspace entry itself. It does not remove keys, sessions,
		or other associated data.
		'''
		cursor = self.db.cursor()
		cursor.execute("SELECT wid FROM workspaces WHERE wid=? AND domain=?", 
			(wid.as_string(),domain.as_string()))
		results = cursor.fetchone()
		if not results or not results[0]:
			return RetVal(ErrNotFound, "%s/%s not found" % (wid.as_string(),domain.as_string()))
		
		cursor.execute("DELETE FROM workspaces WHERE wid=? AND domain=?", 
			(wid.as_string(),domain.as_string()))
		self.db.commit()
		return RetVal()

		Removes a workspace from the storage database.
		NOTE: this only removes the workspace entry itself. It does not remove keys, sessions,
		or other associated data.
		
Removes a workspace from the storage database.
NOTE: this only removes the workspace entry itself. It does not remove keys, sessions,
or other associated data.
Removes a workspace from the storage database . NOTE : this only removes the workspace entry itself . It does not remove keys sessions or other associated data .
def remove_workspace_entry(self, wid: UUID, domain: Domain) -> RetVal:
		cursor = self.db.cursor()
		cursor.execute("SELECT wid FROM workspaces WHERE wid=? AND domain=?", 
			(wid.as_string(),domain.as_string()))
		results = cursor.fetchone()
		if not results or not results[0]:
			return RetVal(ErrNotFound, "%s/%s not found" % (wid.as_string(),domain.as_string()))
		cursor.execute("DELETE FROM workspaces WHERE wid=? AND domain=?", 
			(wid.as_string(),domain.as_string()))
		self.db.commit()
		return RetVal()
def remove_workspace_entry ( self , wid : UUID , domain : Domain ) -> RetVal : cursor = self . db . cursor ( ) cursor . execute ( "SELECT wid FROM workspaces WHERE wid=? AND domain=?" , ( wid . as_string ( ) , domain . as_string ( ) ) ) results = cursor . fetchone ( ) if not results or not results [ 0 ] : return RetVal ( ErrNotFound , "%s/%s not found" % ( wid . as_string ( ) , domain . as_string ( ) ) ) cursor . execute ( "DELETE FROM workspaces WHERE wid=? AND domain=?" , ( wid . as_string ( ) , domain . as_string ( ) ) ) self . db . commit ( ) return RetVal ( )
Removes a workspace from the storage database.
Removes a workspace from the storage database .
'''
		Removes a workspace from the storage database.
		NOTE: this only removes the workspace entry itself. It does not remove keys, sessions,
		or other associated data.
		'''
self
wid
UUID
domain
Domain