dlt.destinations.impl.motherduck.configuration
MotherDuckCredentials Objects
@configspec(init=False)
class MotherDuckCredentials(DuckDbBaseCredentials,
ConnectionStringCredentials)
on_partial
def on_partial() -> None
Takes a token from query string and reuses it as a password
on_resolved
def on_resolved() -> None
Adds custom agent to global config
MotherDuckClientConfiguration Objects
@configspec
class MotherDuckClientConfiguration(
WithAttachableEngine, DestinationClientDwhWithStagingConfiguration)
data_location
def data_location() -> str
Returns the account. One query engine accesses every database of that account. The token is the only account identity, so this method digests it.
fingerprint
def fingerprint() -> str
Returns a fingerprint of user access token.
needs_attach
def needs_attach(other: DestinationClientConfiguration) -> bool
Returns False within one account. The query engine accesses every database of that account.
can_attach
def can_attach(attach_type: TAttachType) -> bool
Returns True only for plain duckdb. A MotherDuck query engine cannot attach another MotherDuck database, because the client must set the token before it opens the connection.