Skip to content

featurebyte.DataSource.list_schemas

list_schemas(
database_name: Union[str, NoneType]=None
) -> List[str]

Description

Lists the schemas present in a particular database of the data source.

Parameters

  • database_name: Union[str, NoneType]
    Name of database.

Returns

  • List[str]
    List of schemas.

Raises

  • RecordRetrievalException
    Failed to retrieve database schema list.

Examples

>>> data_source = fb.FeatureStore.get("playground").get_data_source()
>>> data_source.list_schemas(database_name="spark_catalog")
['default', 'doctest_grocery', 'playground']