@sourceloop/reporting-service / Exports / DataStoreAdapter
Interface: DataStoreAdapter¶
Table of contents¶
Methods¶
- applyRowLevelFilter
- checkIfColumnsExists
- checkIfDataSourceExists
- listDataSourceColumns
- listdataSources
- manageRecord
- query
Methods¶
applyRowLevelFilter¶
▸ applyRowLevelFilter(initialQuery
): Promise
<StructuredQueryInterface
>
Parameters¶
Name | Type |
---|---|
initialQuery |
StructuredQueryInterface |
Returns¶
Promise
<StructuredQueryInterface
>
Defined in¶
services/reporting-service/src/interfaces/data-store-adapter.interface.ts:22
checkIfColumnsExists¶
▸ checkIfColumnsExists(columnEntityPairs
): Promise
<boolean
>
Parameters¶
Name | Type |
---|---|
columnEntityPairs |
ColumnEntityPair [] |
Returns¶
Promise
<boolean
>
Defined in¶
services/reporting-service/src/interfaces/data-store-adapter.interface.ts:21
checkIfDataSourceExists¶
▸ checkIfDataSourceExists(dataSourceNames
): Promise
<boolean
>
Parameters¶
Name | Type |
---|---|
dataSourceNames |
string [] |
Returns¶
Promise
<boolean
>
Defined in¶
services/reporting-service/src/interfaces/data-store-adapter.interface.ts:20
listDataSourceColumns¶
▸ listDataSourceColumns(dataSource
): Promise
<ColumnForDataSourceModel
[]>
Parameters¶
Name | Type |
---|---|
dataSource |
string |
Returns¶
Promise
<ColumnForDataSourceModel
[]>
Defined in¶
services/reporting-service/src/interfaces/data-store-adapter.interface.ts:17
listdataSources¶
▸ listdataSources(): Promise
<DataSourceList
[]>
Returns¶
Promise
<DataSourceList
[]>
Defined in¶
services/reporting-service/src/interfaces/data-store-adapter.interface.ts:10
manageRecord¶
▸ manageRecord(dataSource
, data
, identifier
): Promise
<AnyObject
>
Parameters¶
Name | Type |
---|---|
dataSource |
string |
data |
IngestReportRecord |
identifier |
string |
Returns¶
Promise
<AnyObject
>
Defined in¶
services/reporting-service/src/interfaces/data-store-adapter.interface.ts:12
query¶
▸ query(queryObject
): Promise
<AnyObject
[]>
Parameters¶
Name | Type |
---|---|
queryObject |
StructuredQueryInterface |
Returns¶
Promise
<AnyObject
[]>
Defined in¶
services/reporting-service/src/interfaces/data-store-adapter.interface.ts:11