Interface IIndexable
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public interface IIndexable
Methods
| Improve this Doc View SourceCreateIndex(String, IndexConfiguration)
Creates a SQL index which could be a value index from Value
Declaration
void CreateIndex(string name, IndexConfiguration indexConfig)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The index name |
Index |
indexConfig | The index |
Exceptions
Type | Condition |
---|---|
System. |
Thrown if |
Couchbase |
Thrown if an error condition is returned from LiteCore |
System. |
Thrown if this method is called after the database is closed |
System. |
Thrown if an implementation of IIndex other than one of the library provided ones is used |
DeleteIndex(String)
Deletes the index with the given name
Declaration
void DeleteIndex(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the index to delete |
GetIndexes()
Gets a list of index names that are present in the database
Declaration
IList<string> GetIndexes()
Returns
Type | Description |
---|---|
System. |
The list of created index names |