Package com.couchbase.client.kotlin.query

Types

QueryFlowItem
Link copied to clipboard
sealed class QueryFlowItem
QueryMetadata
Link copied to clipboard
class QueryMetadata(header: QueryChunkHeader, trailer: QueryChunkTrailer) : QueryFlowItem
Metadata about query execution.
QueryMetrics
Link copied to clipboard
class QueryMetrics(map: Map<String, Any?>)
QueryParameters
Link copied to clipboard
sealed class QueryParameters
Create instances using the positional or named factory methods.
QueryProfile
Link copied to clipboard
enum QueryProfile : Enum<QueryProfile>
Controls how much query profiling information is included in the response metadata.
QueryResult
Link copied to clipboard
class QueryResult(rows: List<QueryRow>, metadata: QueryMetadata)
QueryRow
Link copied to clipboard
class QueryRow(content: ByteArray, defaultSerializer: JsonSerializer) : QueryFlowItem
One row of a query result.
QueryScanConsistency
Link copied to clipboard
sealed class QueryScanConsistency
Create instances using the requestPlus, consistentWith, or notBounded factory methods.
QueryStatus
Link copied to clipboard
enum QueryStatus : Enum<QueryStatus>
QueryWarning
Link copied to clipboard
class QueryWarning(code: Int, message: String)

Functions

execute
Link copied to clipboard
suspend fun Flow<QueryFlowItem>.execute(): QueryResult
Collects a query Flow into a QueryResult.
inline suspend fun Flow<QueryFlowItem>.execute(crossinline rowAction: suspend (QueryRow) -> Unit): QueryMetadata
Collects a query Flow, passing each result row to the given lambda.