Class: TagRepository
backend.TagRepository
#
Hierarchy↳
TagRepository
#
Table of contents#
Constructors#
Properties#
Methods- applyBaseFilter
- applyDeleteMany
- applyGetEntityViews
- applyTagFilter
- createEntity
- createTag
- deleteEntity
- deleteMany
- deleteManyFilteredTags
- deleteTag
- getAll
- getById
- getBySlug
- getEntityViews
- getFilteredEntities
- getFilteredTags
- getPaged
- getSqlBoolStr
- getSqlLike
- getTagById
- getTagBySlug
- getTags
- getTagsByIds
- quote
- updateEntity
- updateTag
#
Constructors#
constructor• new TagRepository()
#
Overrides#
Defined insystem/core/backend/src/repositories/tag.repository.ts:16
#
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 <Tag > | DeleteQueryBuilder <Tag > |
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
#
applyTagFilterâ–¸ applyTagFilter(qb
, filterParams?
): SelectQueryBuilder
<Tag
>
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <Tag > |
filterParams? | BaseFilterInput |
#
ReturnsSelectQueryBuilder
<Tag
>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:85
#
createEntityâ–¸ createEntity(input
, id?
): Promise
<Tag
>
#
ParametersName | Type |
---|---|
input | Tag |
id? | null | number |
#
ReturnsPromise
<Tag
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:70
#
createTagâ–¸ createTag(inputData
, id?
): Promise
<Tag
>
#
ParametersName | Type |
---|---|
inputData | TTagInput |
id? | null | number |
#
ReturnsPromise
<Tag
>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:54
#
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
#
deleteManyFilteredTagsâ–¸ deleteManyFilteredTags(input
, filterParams?
): Promise
<undefined
| boolean
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | BaseFilterInput |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:97
#
deleteTagâ–¸ deleteTag(id
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:73
#
getAllâ–¸ getAll(): Promise
<Tag
[]>
#
ReturnsPromise
<Tag
[]>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:44
#
getByIdâ–¸ getById(id
, relations?
): Promise
<Tag
>
#
ParametersName | Type |
---|---|
id | number |
relations? | string [] |
#
ReturnsPromise
<Tag
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:49
#
getBySlugâ–¸ getBySlug(slug
, relations?
): Promise
<Tag
>
#
ParametersName | Type |
---|---|
slug | string |
relations? | string [] |
#
ReturnsPromise
<Tag
>
#
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
<Tag
>>
#
ParametersName | Type |
---|---|
pagedParams? | PagedParamsInput <Tag > |
filterParams? | BaseFilterInput |
#
ReturnsPromise
<TPagedList
<Tag
>>
#
Inherited fromBaseRepository.getFilteredEntities
#
Defined insystem/core/backend/src/repositories/base.repository.ts:164
#
getFilteredTagsâ–¸ getFilteredTags(pagedParams?
, filterParams?
): Promise
<TPagedList
<Tag
>>
#
ParametersName | Type |
---|---|
pagedParams? | PagedParamsInput <Tag > |
filterParams? | BaseFilterInput |
#
ReturnsPromise
<TPagedList
<Tag
>>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:90
#
getPagedâ–¸ getPaged(params?
): Promise
<TPagedList
<Tag
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <Tag > |
#
ReturnsPromise
<TPagedList
<Tag
>>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:38
#
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
#
getTagByIdâ–¸ getTagById(id
): Promise
<undefined
| Tag
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<undefined
| Tag
>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:25
#
getTagBySlugâ–¸ getTagBySlug(slug
): Promise
<undefined
| Tag
>
#
ParametersName | Type |
---|---|
slug | string |
#
ReturnsPromise
<undefined
| Tag
>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:35
#
getTagsâ–¸ getTags(params?
): Promise
<TPagedList
<Tag
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <TTag > |
#
ReturnsPromise
<TPagedList
<Tag
>>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:20
#
getTagsByIdsâ–¸ getTagsByIds(ids
): Promise
<Tag
[]>
#
ParametersName | Type |
---|---|
ids | number [] |
#
ReturnsPromise
<Tag
[]>
#
Defined insystem/core/backend/src/repositories/tag.repository.ts:30
#
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
<Tag
>
#
ParametersName | Type |
---|---|
id | number |
input | Tag |
#
ReturnsPromise
<Tag
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:82
#
updateTagâ–¸ updateTag(id
, inputData
): Promise
<Tag
>
#
ParametersName | Type |
---|---|
id | number |
inputData | TTagInput |
#
ReturnsPromise
<Tag
>