Instance Method
listIndexes(inDB:eventLoopGroup:)
Lists all Mango indexes in a specified database.
func listIndexes(inDB dbName: String, eventLoopGroup: (any EventLoopGroup)? = nil) async throws -> MangoIndexesResponse
Parameters
- dbName
The name of the database.
- eventLoopGroup
An optional EventLoopGroup for executing network operations.
Return Value
A MangoIndexesResponse containing the list of indexes.
Discussion
Throws
A CouchDBClientError if the operation fails.
Example Usage:
// List all Mango indexes in a database
let indexesResponse = try await couchDBClient.listIndexes(inDB: "myDatabase")
print(indexesResponse.indexes)