Skip to main content
Version: 0.5.4

common.destination.capabilities

LoaderFileFormatAdapter Objects

class LoaderFileFormatAdapter(Protocol)

[view_source]

Callback protocol for loader_file_format_adapter capability.

DestinationCapabilitiesContext Objects

@configspec
class DestinationCapabilitiesContext(ContainerInjectableContext)

[view_source]

Injectable destination capabilities required for many Pipeline stages ie. normalize

loader_file_format_adapter

Callable that adapts preferred_loader_file_format and supported_loader_file_formats at runtime.

supported_table_formats

type: ignore[name-defined] # noqa: F821

Recommended file size in bytes when writing extract/load files

escape_identifier

Escapes table name, column name and other identifiers

escape_literal

Escapes string literal

casefold_identifier

Casing function applied by destination to represent case insensitive identifiers.

has_case_sensitive_identifiers

Tells if destination supports case sensitive identifiers

supports_clone_table

Destination supports CREATE TABLE ... CLONE ... statements

max_table_nesting

Allows a destination to overwrite max_table_nesting from source

supported_merge_strategies

type: ignore[name-defined] # noqa: F821

max_parallel_load_jobs

The destination can set the maxium amount of parallel load jobs being executed

loader_parallelism_strategy

The destination can override the parallelism strategy

generates_case_sensitive_identifiers

def generates_case_sensitive_identifiers() -> bool

[view_source]

Tells if capabilities as currently adjusted, will generate case sensitive identifiers

merge_caps_file_formats

def merge_caps_file_formats(
destination: str, staging: str, dest_caps: DestinationCapabilitiesContext,
stage_caps: DestinationCapabilitiesContext
) -> Tuple[TLoaderFileFormat, Sequence[TLoaderFileFormat]]

[view_source]

Merges preferred and supported file formats from destination and staging. Returns new preferred file format and all possible formats.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.