Skip to main content
Version: 1.3.7

DataSourceManager

Signature

class great_expectations.datasource.fluent.sources.DataSourceManager(data_context: GXDataContext)

Contains methods to interact with data sources from the gx context

This contains a collection of dynamically generated datasource factory methods in the format .add_<TYPE_NAME>().

It also contains general data source manipulation methods such as all(), get() and delete().

Methods

Signature

all() → DatasourceDict

Get all Datasources.

Signature

delete(name: str)None

Deletes a datasource by name.

Parameters

NameDescription

name

The name of the given datasource.

Signature

get(name: str) → Datasource

Get a Datasource from the collection by name.

Parameters

NameDescription

name

Name of Datasource to get

Raises

TypeDescription

KeyError

when Datasource is not found.