MCPcopy Create free account
hub / github.com/CloudOrc/SolidUI / remove_data_source

Method remove_data_source

solidui/views/datasource/api.py:153–164  ·  view source on GitHub ↗

get info by data source name

(self, data_source_id)

Source from the content-addressed store, hash-verified

151 @expose('/info/delete/<int:data_source_id>', methods=("DELETE",))
152 @safe
153 def remove_data_source(self, data_source_id) -> FlaskResponse:
154 """
155 get info by data source name
156 """
157 try:
158
159 DataSourceDAO.delete_data_source(data_source_id)
160 return self.response_format()
161
162 except DAODeleteFailedError as ex:
163 logger.exception(ex)
164 return self.handle_error(SolidUIErrorType.DELETE_DATASOURCE_ERROR)
165
166 @expose('/info/<int:data_source_id>/expire', methods=("PUT",))
167 @safe

Callers

nothing calls this directly

Calls 4

delete_data_sourceMethod · 0.80
exceptionMethod · 0.80
handle_errorMethod · 0.80
response_formatMethod · 0.45

Tested by

no test coverage detected