1
0
Fork 0
mirror of synced 2024-06-02 02:25:17 +12:00
budibase/packages/types/src/sdk/db.ts

25 lines
401 B
TypeScript
Raw Normal View History

2022-10-25 21:02:55 +13:00
import PouchDB from "pouchdb"
export type PouchOptions = {
inMemory: boolean
replication: boolean
onDisk: boolean
find: boolean
}
export enum SortOption {
ASCENDING = "asc",
DESCENDING = "desc",
}
export type CouchFindOptions = {
selector: PouchDB.Find.Selector
fields?: string[]
sort?: {
[key: string]: SortOption
}[]
limit?: number
skip?: number
bookmark?: string
}