Skip to content

cozy-pouch-link / SQLiteQuery

Class: SQLiteQuery

Hierarchy

  • DatabaseQueryEngine

    SQLiteQuery

Constructors

constructor

new SQLiteQuery(pouchManager, doctype)

Parameters

Name Type
pouchManager any
doctype any

Overrides

DatabaseQueryEngine.constructor

Defined in

db/sqlite/sqliteDb.js:3

Methods

allDocs

allDocs(options): Promise<QueryResponse>

Get all docs

Parameters

Name Type Description
options AllDocsParams The all docs options

Returns

Promise<QueryResponse>

The found docs

Inherited from

DatabaseQueryEngine.allDocs

Defined in

db/dbInterface.js:55


find

find(options): Promise<QueryResponse>

Find docs with filtered query

Parameters

Name Type Description
options FindParams The find options

Returns

Promise<QueryResponse>

The found docs

Inherited from

DatabaseQueryEngine.find

Defined in

db/dbInterface.js:45


getById

getById(id): Promise<QueryResponseSingleDoc>

Get a single doc by its id

Parameters

Name Type Description
id string id of the document to get

Returns

Promise<QueryResponseSingleDoc>

The found docs

Inherited from

DatabaseQueryEngine.getById

Defined in

db/dbInterface.js:65


getByIds

getByIds(ids): Promise<QueryResponse>

Get several docs by their ids

Parameters

Name Type Description
ids string[] ids of the documents to get

Returns

Promise<QueryResponse>

The found docs

Inherited from

DatabaseQueryEngine.getByIds

Defined in

db/dbInterface.js:75


openDB

openDB(dbName): void

Open the database

Parameters

Name Type Description
dbName string The database name

Returns

void

Inherited from

DatabaseQueryEngine.openDB

Defined in

db/dbInterface.js:35