NAME

WebService::Chroma::DB - chromadb database

VERSION

Version 0.06

SYNOPSIS

use WebService::Chroma::DB;

my $db = WebService::Chroma::DB->new(
	ua => WebService::Chroma::UA->new(...),
	tenant => '...',
	name => '...',
);

my $collection = $db->create_collection(
	name => 'test-collection'
);

Methods

create_collection

Create a new collection. This returns an WebService::Chroma::Collection object.

	$db->create_collection(
		name => 'test-collection',
  		configuration => { ... },
  		metadata => { ... },
  		get_or_create => \1
	);

count_collections

Count all collections related to the current database.

$db->count_collections();

get_collections

Retrieve all collections related to the current database. This returns a list of WebService::Chroma::Collection objects.

$db->get_collections(
	limit => 10,
	offset => 0
);

get_collection

Retrieve an existing collection. This returns a WebService::Chroma::Collection object.

$db->get_collection(
	name => 'test-collection'
);

delete_collection

Delete an existing collection.

$db->delete_collection(
	name => 'test-collection'
);

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-webservice-chroma at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-Chroma. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WebService::Chroma

You can also look for information at: