Show / Hide Table of Contents

Interface IQuery

An interface representing a runnable query over a data source

Inherited Members
IChangeObservable<QueryChangedEventArgs>.AddChangeListener(TaskScheduler, EventHandler<QueryChangedEventArgs>)
IChangeObservable<QueryChangedEventArgs>.AddChangeListener(EventHandler<QueryChangedEventArgs>)
IChangeObservableRemovable.RemoveChangeListener(ListenerToken)
System.IDisposable.Dispose()
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public interface IQuery : IChangeObservable<QueryChangedEventArgs>, IChangeObservableRemovable, IDisposable

Properties

| Improve this Doc View Source

Parameters

Gets or sets the parameter collection for this query so that parameters may be added for substitution into the query API (via Parameter(String))

Declaration
Parameters Parameters { get; set; }
Property Value
Type Description
Parameters
Remarks

The returned collection is a copy, and must be reset onto the query instance. Doing so will trigger a re-run and update any listeners.

Methods

| Improve this Doc View Source

Execute()

Runs the query

Declaration
IResultSet Execute()
Returns
Type Description
IResultSet

The results of running the query

Exceptions
Type Condition
System.InvalidOperationException

Thrown if this query has no database to operate on, or if it is missing SELECT or FROM statements (unusual)

| Improve this Doc View Source

Explain()

Gets an explanation of what the query will do

Declaration
string Explain()
Returns
Type Description
System.String

The explanation of the query

Exceptions
Type Condition
System.ObjectDisposedException

Thrown if this method is called after disposal

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX