Interface IBucket
Assembly: Couchbase.NetClient.dll
Syntax
public interface IBucket : IDisposable, IAsyncDisposable
Properties
|
Edit this page
View Source
Cluster
The cluster that owns this bucket.
Declaration
ICluster Cluster { get; }
Property Value
|
Edit this page
View Source
Collections
Declaration
ICouchbaseCollectionManager Collections { get; }
Property Value
|
Edit this page
View Source
Name
Declaration
Property Value
|
Edit this page
View Source
SupportsCollections
Declaration
bool SupportsCollections { get; }
Property Value
|
Edit this page
View Source
ViewIndexes
Declaration
IViewIndexManager ViewIndexes { get; }
Property Value
Methods
|
Edit this page
View Source
Collection(string)
Declaration
ICouchbaseCollection Collection(string collectionName)
Parameters
Type |
Name |
Description |
string |
collectionName |
|
Returns
|
Edit this page
View Source
CollectionAsync(string)
Gets a collection from the default scope of the bucket by name.
Declaration
ValueTask<ICouchbaseCollection> CollectionAsync(string collectionName)
Parameters
Type |
Name |
Description |
string |
collectionName |
The name of the collection to fetch.
|
Returns
|
Edit this page
View Source
DefaultCollection()
Declaration
ICouchbaseCollection DefaultCollection()
Returns
|
Edit this page
View Source
DefaultCollectionAsync()
Gets the default collection for the bucket.
Declaration
ValueTask<ICouchbaseCollection> DefaultCollectionAsync()
Returns
|
Edit this page
View Source
DefaultScope()
Declaration
Returns
|
Edit this page
View Source
DefaultScopeAsync()
Gets the default scope for the bucket.
Declaration
ValueTask<IScope> DefaultScopeAsync()
Returns
|
Edit this page
View Source
PingAsync(PingOptions?)
Actively performs I/O by application-level pinging services and returning their pinged status.
Declaration
Task<IPingReport> PingAsync(PingOptions? options = null)
Parameters
Type |
Name |
Description |
PingOptions |
options |
Optional arguments.
|
Returns
|
Edit this page
View Source
Scope(string)
Declaration
IScope Scope(string scopeName)
Parameters
Type |
Name |
Description |
string |
scopeName |
|
Returns
|
Edit this page
View Source
ScopeAsync(string)
Gets a scope from the bucket by name.
Declaration
ValueTask<IScope> ScopeAsync(string scopeName)
Parameters
Type |
Name |
Description |
string |
scopeName |
The name of the scope to fetch.
|
Returns
|
Edit this page
View Source
ViewQueryAsync<TKey, TValue>(string, string, ViewOptions?)
Declaration
Task<IViewResult<TKey, TValue>> ViewQueryAsync<TKey, TValue>(string designDocument, string viewName, ViewOptions? options = null)
Parameters
Returns
Type Parameters
Name |
Description |
TKey |
Type of the key for each result row.
|
TValue |
Type of the value for each result row.
|
|
Edit this page
View Source
WaitUntilReadyAsync(TimeSpan, WaitUntilReadyOptions?)
Waits until a desired cluster state by default (“online”) is reached or times out.
Declaration
Task WaitUntilReadyAsync(TimeSpan timeout, WaitUntilReadyOptions? options = null)
Parameters
Returns
Extension Methods