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 |