C# Class KidoZen.Indexes

Afficher le fichier Open project: kidozen/kido-xamarin

Méthodes publiques

Méthode Description
All ( ) : Task>
Create ( string spec, bool safe = false, bool unique = false, bool sparse = false, bool background = false, bool dropDups = false, double min = null, double max = null ) : Task>

Delete ( string name ) : Task>
Get ( string name ) : Task>

Private Methods

Méthode Description
Indexes ( KZApplication app, Uri url ) : System

Method Details

All() public méthode

public All ( ) : Task>
Résultat Task>

Create() public méthode

public Create ( string spec, bool safe = false, bool unique = false, bool sparse = false, bool background = false, bool dropDups = false, double min = null, double max = null ) : Task>
spec string JSON string with the index's specification. {lastName:1, firstName:1}
safe bool
unique bool
sparse bool
background bool creates the index in the background, yielding whenever possible
dropDups bool a unique index cannot be created on a key that has pre-existing duplicate: values. If you would like to create the index anyway, keeping the first document the database: indexes and deleting all subsequent documents that have duplicate value
min double for geospatial indexes set the lower bound for the co-ordinates
max double for geospatial indexes set the high bound for the co-ordinates.
Résultat Task>

Delete() public méthode

public Delete ( string name ) : Task>
name string
Résultat Task>

Get() public méthode

public Get ( string name ) : Task>
name string
Résultat Task>