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
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
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
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
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
openDB¶
▸ openDB(dbName): void
Open the database
Parameters
| Name | Type | Description |
|---|---|---|
dbName |
string |
The database name |
Returns
void
Inherited from
DatabaseQueryEngine.openDB
Defined in