dlt.destinations.impl.weaviate.weaviate_client
LoadWeaviateJob Objects
class LoadWeaviateJob(RunnableLoadJob)
load_batch
@wrap_weaviate_error
def load_batch(f: IO[str]) -> None
Load all the lines from stream f
in automatic Weaviate batches.
Weaviate batch supports retries so we do not need to do that.
WeaviateClient Objects
class WeaviateClient(JobClientBase, WithStateSync)
Weaviate client implementation.
make_qualified_class_name
def make_qualified_class_name(table_name: str) -> str
Make a full Weaviate class name from a table name by prepending the dataset name if it exists.
get_class_schema
def get_class_schema(table_name: str) -> Dict[str, Any]
Get the Weaviate class schema for a table.
create_class
def create_class(class_schema: Dict[str, Any],
full_class_name: Optional[str] = None) -> None
Create a Weaviate class.
Arguments:
class_schema
- The class schema to create.full_class_name
- The full name of the class to create. If not provided, the class name will be prepended with the dataset name if it exists.
create_class_property
def create_class_property(class_name: str, prop_schema: Dict[str,
Any]) -> None
Create a Weaviate class property.
Arguments:
class_name
- The name of the class to create the property on.prop_schema
- The property schema to create.