Datahubs
Camel.datahubs.base
BaseDatasetManager
Abstract base class for dataset managers.
create_dataset
Creates a new dataset.
Parameters:
- name (str): The name of the dataset.
- kwargs (Any): Additional keyword arguments.
Returns:
str: The URL of the created dataset.
list_datasets
Lists all datasets for the current user.
Parameters:
- username (str): The username of the user whose datasets to list.
- limit (int): The maximum number of datasets to list. (default::obj:
100
) - kwargs (Any): Additional keyword arguments.
Returns:
List[str]: A list of dataset ids.
delete_dataset
Deletes a dataset.
Parameters:
- dataset_name (str): The name of the dataset to delete.
- kwargs (Any): Additional keyword arguments.
add_records
Adds records to a dataset.
Parameters:
- dataset_name (str): The name of the dataset.
- records (List[Record]): A list of records to add to the dataset.
- filepath (str): The path to the file containing the records. (default::obj:
"records/records.json"
) - kwargs (Any): Additional keyword arguments.
update_records
Updates records in a dataset.
Parameters:
- dataset_name (str): The name of the dataset.
- records (List[Record]): A list of records to update in the dataset.
- filepath (str): The path to the file containing the records. (default::obj:
"records/records.json"
) - kwargs (Any): Additional keyword arguments.
list_records
Lists records in a dataset.
Parameters:
- dataset_name (str): The name of the dataset.
- filepath (str): The path to the file containing the records. (default::obj:
"records/records.json"
) - kwargs (Any): Additional keyword arguments.
delete_record
Deletes a record from the dataset.
Parameters:
- dataset_name (str): The name of the dataset.
- record_id (str): The ID of the record to delete.
- filepath (str): The path to the file containing the records. (default::obj:
"records/records.json"
) - kwargs (Any): Additional keyword arguments.