public static extern bool c4db_createIndex(C4Database *database, FLSlice name, FLSlice expressionsJSON, C4IndexType indexType, C4IndexOptions *indexOptions, C4Error *outError);
public static bool c4db_createIndex(C4Database *database, string name, string expressionsJSON, C4IndexType indexType, C4IndexOptions *indexOptions, C4Error *outError) { using (var name_ = new C4String(name)) using (var expressionsJSON_ = new C4String(expressionsJSON)) { return(NativeRaw.c4db_createIndex(database, name_.AsFLSlice(), expressionsJSON_.AsFLSlice(), indexType, indexOptions, outError)); } }
public static extern bool c4db_deleteIndex(C4Database *database, C4Slice expressionsJSON, C4IndexType indexType, C4Error *outError);
protected QueryIndexBase(C4IndexType indexType) { IndexType = indexType; }
public bool c4db_createIndex(C4Database *database, C4Slice name, C4Slice expressionsJSON, C4IndexType indexType, C4IndexOptions *indexOptions, C4Error *outError) => NativeRaw.c4db_createIndex(database, name, expressionsJSON, indexType, indexOptions, outError);
public static bool c4db_deleteIndex(C4Database *database, string expressionsJSON, C4IndexType indexType, C4Error *outError) { using (var expressionsJSON_ = new C4String(expressionsJSON)) { return(NativeRaw.c4db_deleteIndex(database, expressionsJSON_.AsC4Slice(), indexType, outError)); } }
public static extern bool c4db_createIndex2(C4Database *database, FLSlice name, FLSlice indexSpec, C4QueryLanguage queryLanguage, C4IndexType indexType, C4IndexOptions *indexOptions, C4Error *outError);
public static bool c4db_createIndex2(C4Database *database, string name, string indexSpec, C4QueryLanguage queryLanguage, C4IndexType indexType, C4IndexOptions *indexOptions, C4Error *outError) { using (var name_ = new C4String(name)) using (var indexSpec_ = new C4String(indexSpec)) { return(NativeRaw.c4db_createIndex2(database, name_.AsFLSlice(), indexSpec_.AsFLSlice(), queryLanguage, indexType, indexOptions, outError)); } }
public static bool c4db_createIndex(C4Database *database, string name, string expressionsJSON, C4IndexType indexType, C4IndexOptions *indexOptions, C4Error *outError) => Impl.c4db_createIndex(database, name, expressionsJSON, indexType, indexOptions, outError);
internal IndexConfiguration(C4IndexType indexType, C4QueryLanguage queryLanguage) { IndexType = indexType; QueryLanguage = queryLanguage; }
internal IndexConfiguration(C4IndexType indexType, params string[] items) : this(indexType, C4QueryLanguage.N1QLQuery) { Expressions = items; }