QuerySpec
Simple class to represent a query spec
Types
Properties
Functions
Link copied to clipboard
open fun buildAllQuerySpec(soupName: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
open fun buildAllQuerySpec(soupName: String, selectPaths: Array<String>, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
Return query spec for an all query
Link copied to clipboard
open fun buildExactQuerySpec(soupName: String, path: String, exactMatchKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
open fun buildExactQuerySpec(soupName: String, selectPaths: Array<String>, path: String, exactMatchKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
Return a query spec for an exact match query
Link copied to clipboard
open fun buildLikeQuerySpec(soupName: String, path: String, likeKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
open fun buildLikeQuerySpec(soupName: String, selectPaths: Array<String>, path: String, likeKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
Return a query spec for a like query
Link copied to clipboard
open fun buildMatchQuerySpec(soupName: String, path: String, matchKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
open fun buildMatchQuerySpec(soupName: String, selectPaths: Array<String>, path: String, matchKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
Return a query spec for a match query (full-text search)
Link copied to clipboard
open fun buildRangeQuerySpec(soupName: String, path: String, beginKey: String, endKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
open fun buildRangeQuerySpec(soupName: String, selectPaths: Array<String>, path: String, beginKey: String, endKey: String, orderPath: String, order: QuerySpec.Order, pageSize: Int): QuerySpec
Return a query spec for a range query
Link copied to clipboard
Return a query spec for a smart query
Link copied to clipboard
Link copied to clipboard
fts5 doesn't allow WHERE column MATCH 'value' - only allows WHERE table MATCH 'column:value' This method changes the matchKey to add field: in the right places