Skip to content

@sourceloop/search-service / Exports / SearchProvider

Class: SearchProvider<T>

Type parameters

Name Type
T extends Model

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SearchProvider<T>(config, datasource, mySQLBuilder, psqlBuilder)

Type parameters

Name Type
T extends Model<T>

Parameters

Name Type
config SearchServiceConfig<T>
datasource DataSource
mySQLBuilder typeof MySqlQueryBuilder
psqlBuilder typeof PsqlQueryBuilder

Defined in

services/search-service/src/services/search.provider.ts:22

Properties

config

Private Readonly config: SearchServiceConfig<T>

Defined in

services/search-service/src/services/search.provider.ts:24


datasource

Private Readonly datasource: DataSource

Defined in

services/search-service/src/services/search.provider.ts:26


mySQLBuilder

Private Readonly mySQLBuilder: typeof MySqlQueryBuilder

Defined in

services/search-service/src/services/search.provider.ts:28


psqlBuilder

Private Readonly psqlBuilder: typeof PsqlQueryBuilder

Defined in

services/search-service/src/services/search.provider.ts:30

Methods

value

value(): SearchFunctionType<T>

Returns

SearchFunctionType<T>

Implementation of

Provider.value

Defined in

services/search-service/src/services/search.provider.ts:33