Files
2025-11-30 08:44:54 +08:00

1.1 KiB

slug
slug
/collection-overview-of-api

Manage collections

In pyseekdb, a collection is a set similar to a table in a database. You can create, query, and delete collections.

The following API interfaces are supported for managing collections.

API interface Description Documentation
create_collection() Creates a collection. Documentation
get_collection() Gets a specified collection. Documentation
get_or_create_collection() Creates or queries a collection. If the collection does not exist in the database, it is created. If the collection exists, the corresponding result is obtained. Documentation
list_collections() Gets the collection list of a database. Documentation
count_collection() Counts the number of collections in a database Documentation
delete_collection() Deletes a specified collection. Documentation