MCPcopy
hub / github.com/dlt-hub/dlt / destination_factory

Method destination_factory

tests/load/utils.py:219–225  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

217 naming_convention: Optional[TNamingConventionReferenceArg] = None
218
219 def destination_factory(self, **kwargs) -> Destination[Any, Any]:
220 dest_type = kwargs.pop("destination", self.destination_type)
221 dest_name = kwargs.pop("destination_name", self.destination_name)
222 self.setup()
223 return Destination.from_reference(
224 dest_type, self.credentials, destination_name=dest_name, **kwargs
225 )
226
227 def raw_capabilities(self) -> DestinationCapabilitiesContext:
228 dest = Destination.from_reference(self.destination_type)

Calls 2

setupMethod · 0.95
from_referenceMethod · 0.45