Class: PluginRepository
backend.PluginRepository
#
Hierarchy↳
PluginRepository
#
Table of contents#
Constructors#
Properties#
Methods- applyBaseFilter
- applyDeleteMany
- applyGetEntityViews
- createEntity
- createPlugin
- deleteEntity
- deleteMany
- deletePlugin
- getAll
- getById
- getBySlug
- getEntityViews
- getFilteredEntities
- getPaged
- getPluginById
- getPluginBySlug
- getPluginSettings
- getPlugins
- getSqlBoolStr
- getSqlLike
- quote
- updateEntity
- updatePlugin
#
Constructors#
constructor• new PluginRepository()
#
Overrides#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:15
#
Properties#
dbType• dbType: "mysql"
| "mariadb"
| "postgres"
| "cockroachdb"
| "sqlite"
| "mssql"
| "sap"
| "oracle"
| "cordova"
| "nativescript"
| "react-native"
| "sqljs"
| "mongodb"
| "aurora-data-api"
| "aurora-data-api-pg"
| "expo"
| "better-sqlite3"
| "capacitor"
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:24
#
Methods#
applyBaseFilterâ–¸ applyBaseFilter<EntityType
>(qb
, filter?
): SelectQueryBuilder
<EntityType
>
#
Type parametersName | Type |
---|---|
EntityType | TBasePageEntity |
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <EntityType > |
filter? | BaseFilterInput |
#
ReturnsSelectQueryBuilder
<EntityType
>
#
Inherited fromBaseRepository.applyBaseFilter
#
Defined insystem/core/backend/src/repositories/base.repository.ts:155
#
applyDeleteManyâ–¸ applyDeleteMany(qb
, input
): Promise
<void
>
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <PluginEntity > | DeleteQueryBuilder <PluginEntity > |
input | TDeleteManyInput |
#
ReturnsPromise
<void
>
#
Inherited fromBaseRepository.applyDeleteMany
#
Defined insystem/core/backend/src/repositories/base.repository.ts:108
#
applyGetEntityViewsâ–¸ applyGetEntityViews(qb
, entityType
): SelectQueryBuilder
<TBasePageEntity
>
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <TBasePageEntity > |
entityType | EDBEntity |
#
ReturnsSelectQueryBuilder
<TBasePageEntity
>
#
Inherited fromBaseRepository.applyGetEntityViews
#
Defined insystem/core/backend/src/repositories/base.repository.ts:133
#
createEntityâ–¸ createEntity(input
, id?
): Promise
<PluginEntity
>
#
ParametersName | Type |
---|---|
input | PluginEntity |
id? | null | number |
#
ReturnsPromise
<PluginEntity
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:70
#
createPluginâ–¸ createPlugin(createPlugin
): Promise
<PluginEntity
>
#
ParametersName | Type |
---|---|
createPlugin | TPluginEntityInput |
#
ReturnsPromise
<PluginEntity
>
#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:48
#
deleteEntityâ–¸ deleteEntity(id
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<boolean
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:97
#
deleteManyâ–¸ deleteMany(input
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<boolean
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:125
#
deletePluginâ–¸ deletePlugin(id
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:67
#
getAllâ–¸ getAll(): Promise
<PluginEntity
[]>
#
ReturnsPromise
<PluginEntity
[]>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:44
#
getByIdâ–¸ getById(id
, relations?
): Promise
<PluginEntity
>
#
ParametersName | Type |
---|---|
id | number |
relations? | string [] |
#
ReturnsPromise
<PluginEntity
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:49
#
getBySlugâ–¸ getBySlug(slug
, relations?
): Promise
<PluginEntity
>
#
ParametersName | Type |
---|---|
slug | string |
relations? | string [] |
#
ReturnsPromise
<PluginEntity
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:60
#
getEntityViewsâ–¸ getEntityViews(entityId
, entityType
): Promise
<any
>
#
ParametersName | Type |
---|---|
entityId | number |
entityType | EDBEntity |
#
ReturnsPromise
<any
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:144
#
getFilteredEntitiesâ–¸ getFilteredEntities(pagedParams?
, filterParams?
): Promise
<TPagedList
<PluginEntity
>>
#
ParametersName | Type |
---|---|
pagedParams? | PagedParamsInput <PluginEntity > |
filterParams? | BaseFilterInput |
#
ReturnsPromise
<TPagedList
<PluginEntity
>>
#
Inherited fromBaseRepository.getFilteredEntities
#
Defined insystem/core/backend/src/repositories/base.repository.ts:164
#
getPagedâ–¸ getPaged(params?
): Promise
<TPagedList
<PluginEntity
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <PluginEntity > |
#
ReturnsPromise
<TPagedList
<PluginEntity
>>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:38
#
getPluginByIdâ–¸ getPluginById(id
): Promise
<undefined
| PluginEntity
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<undefined
| PluginEntity
>
#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:24
#
getPluginBySlugâ–¸ getPluginBySlug(slug
): Promise
<undefined
| PluginEntity
>
#
ParametersName | Type |
---|---|
slug | string |
#
ReturnsPromise
<undefined
| PluginEntity
>
#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:29
#
getPluginSettingsâ–¸ getPluginSettings<T
>(pluginName
): Promise
<undefined
| T
>
#
Type parametersName |
---|
T |
#
ParametersName | Type |
---|---|
pluginName | string |
#
ReturnsPromise
<undefined
| T
>
#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:79
#
getPluginsâ–¸ getPlugins(params
): Promise
<TPagedList
<PluginEntity
>>
#
ParametersName | Type |
---|---|
params | TPagedParams <PluginEntity > |
#
ReturnsPromise
<TPagedList
<PluginEntity
>>
#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:19
#
getSqlBoolStrâ–¸ getSqlBoolStr(b
): "true"
| "false"
| "1"
| "0"
#
ParametersName | Type |
---|---|
b | boolean |
#
Returns"true"
| "false"
| "1"
| "0"
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:34
#
getSqlLikeâ–¸ getSqlLike(): "ILIKE"
| "LIKE"
#
Returns"ILIKE"
| "LIKE"
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:35
#
quoteâ–¸ quote(str
): string
#
ParametersName | Type |
---|---|
str | string |
#
Returnsstring
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:36
#
updateEntityâ–¸ updateEntity(id
, input
): Promise
<PluginEntity
>
#
ParametersName | Type |
---|---|
id | number |
input | PluginEntity |
#
ReturnsPromise
<PluginEntity
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:82
#
updatePluginâ–¸ updatePlugin(id
, updatePlugin
): Promise
<PluginEntity
>
#
ParametersName | Type |
---|---|
id | number |
updatePlugin | TPluginEntityInput |
#
ReturnsPromise
<PluginEntity
>
#
Defined insystem/core/backend/src/repositories/plugin.repository.ts:57