Skip to main content

Class: TagRepository

backend.TagRepository

Hierarchy#

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

• new TagRepository()

Overrides#

BaseRepository.constructor

Defined in#

system/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#

BaseRepository.dbType

Defined in#

system/core/backend/src/repositories/base.repository.ts:24

Methods#

applyBaseFilter#

â–¸ applyBaseFilter<EntityType>(qb, filter?): SelectQueryBuilder<EntityType>

Type parameters#

NameType
EntityTypeTBasePageEntity

Parameters#

NameType
qbSelectQueryBuilder<EntityType>
filter?BaseFilterInput

Returns#

SelectQueryBuilder<EntityType>

Inherited from#

BaseRepository.applyBaseFilter

Defined in#

system/core/backend/src/repositories/base.repository.ts:155


applyDeleteMany#

â–¸ applyDeleteMany(qb, input): Promise<void>

Parameters#

NameType
qbSelectQueryBuilder<Tag> | DeleteQueryBuilder<Tag>
inputTDeleteManyInput

Returns#

Promise<void>

Inherited from#

BaseRepository.applyDeleteMany

Defined in#

system/core/backend/src/repositories/base.repository.ts:108


applyGetEntityViews#

â–¸ applyGetEntityViews(qb, entityType): SelectQueryBuilder<TBasePageEntity>

Parameters#

NameType
qbSelectQueryBuilder<TBasePageEntity>
entityTypeEDBEntity

Returns#

SelectQueryBuilder<TBasePageEntity>

Inherited from#

BaseRepository.applyGetEntityViews

Defined in#

system/core/backend/src/repositories/base.repository.ts:133


applyTagFilter#

â–¸ applyTagFilter(qb, filterParams?): SelectQueryBuilder<Tag>

Parameters#

NameType
qbSelectQueryBuilder<Tag>
filterParams?BaseFilterInput

Returns#

SelectQueryBuilder<Tag>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:85


createEntity#

â–¸ createEntity(input, id?): Promise<Tag>

Parameters#

NameType
inputTag
id?null | number

Returns#

Promise<Tag>

Inherited from#

BaseRepository.createEntity

Defined in#

system/core/backend/src/repositories/base.repository.ts:70


createTag#

â–¸ createTag(inputData, id?): Promise<Tag>

Parameters#

NameType
inputDataTTagInput
id?null | number

Returns#

Promise<Tag>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:54


deleteEntity#

â–¸ deleteEntity(id): Promise<boolean>

Parameters#

NameType
idnumber

Returns#

Promise<boolean>

Inherited from#

BaseRepository.deleteEntity

Defined in#

system/core/backend/src/repositories/base.repository.ts:97


deleteMany#

â–¸ deleteMany(input): Promise<boolean>

Parameters#

NameType
inputTDeleteManyInput

Returns#

Promise<boolean>

Inherited from#

BaseRepository.deleteMany

Defined in#

system/core/backend/src/repositories/base.repository.ts:125


deleteManyFilteredTags#

â–¸ deleteManyFilteredTags(input, filterParams?): Promise<undefined | boolean>

Parameters#

NameType
inputTDeleteManyInput
filterParams?BaseFilterInput

Returns#

Promise<undefined | boolean>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:97


deleteTag#

â–¸ deleteTag(id): Promise<boolean>

Parameters#

NameType
idnumber

Returns#

Promise<boolean>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:73


getAll#

â–¸ getAll(): Promise<Tag[]>

Returns#

Promise<Tag[]>

Inherited from#

BaseRepository.getAll

Defined in#

system/core/backend/src/repositories/base.repository.ts:44


getById#

â–¸ getById(id, relations?): Promise<Tag>

Parameters#

NameType
idnumber
relations?string[]

Returns#

Promise<Tag>

Inherited from#

BaseRepository.getById

Defined in#

system/core/backend/src/repositories/base.repository.ts:49


getBySlug#

â–¸ getBySlug(slug, relations?): Promise<Tag>

Parameters#

NameType
slugstring
relations?string[]

Returns#

Promise<Tag>

Inherited from#

BaseRepository.getBySlug

Defined in#

system/core/backend/src/repositories/base.repository.ts:60


getEntityViews#

â–¸ getEntityViews(entityId, entityType): Promise<any>

Parameters#

NameType
entityIdnumber
entityTypeEDBEntity

Returns#

Promise<any>

Inherited from#

BaseRepository.getEntityViews

Defined in#

system/core/backend/src/repositories/base.repository.ts:144


getFilteredEntities#

â–¸ getFilteredEntities(pagedParams?, filterParams?): Promise<TPagedList<Tag>>

Parameters#

NameType
pagedParams?PagedParamsInput<Tag>
filterParams?BaseFilterInput

Returns#

Promise<TPagedList<Tag>>

Inherited from#

BaseRepository.getFilteredEntities

Defined in#

system/core/backend/src/repositories/base.repository.ts:164


getFilteredTags#

â–¸ getFilteredTags(pagedParams?, filterParams?): Promise<TPagedList<Tag>>

Parameters#

NameType
pagedParams?PagedParamsInput<Tag>
filterParams?BaseFilterInput

Returns#

Promise<TPagedList<Tag>>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:90


getPaged#

â–¸ getPaged(params?): Promise<TPagedList<Tag>>

Parameters#

NameType
params?TPagedParams<Tag>

Returns#

Promise<TPagedList<Tag>>

Inherited from#

BaseRepository.getPaged

Defined in#

system/core/backend/src/repositories/base.repository.ts:38


getSqlBoolStr#

â–¸ getSqlBoolStr(b): "true" | "false" | "1" | "0"

Parameters#

NameType
bboolean

Returns#

"true" | "false" | "1" | "0"

Inherited from#

BaseRepository.getSqlBoolStr

Defined in#

system/core/backend/src/repositories/base.repository.ts:34


getSqlLike#

â–¸ getSqlLike(): "ILIKE" | "LIKE"

Returns#

"ILIKE" | "LIKE"

Inherited from#

BaseRepository.getSqlLike

Defined in#

system/core/backend/src/repositories/base.repository.ts:35


getTagById#

â–¸ getTagById(id): Promise<undefined | Tag>

Parameters#

NameType
idnumber

Returns#

Promise<undefined | Tag>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:25


getTagBySlug#

â–¸ getTagBySlug(slug): Promise<undefined | Tag>

Parameters#

NameType
slugstring

Returns#

Promise<undefined | Tag>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:35


getTags#

â–¸ getTags(params?): Promise<TPagedList<Tag>>

Parameters#

NameType
params?TPagedParams<TTag>

Returns#

Promise<TPagedList<Tag>>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:20


getTagsByIds#

â–¸ getTagsByIds(ids): Promise<Tag[]>

Parameters#

NameType
idsnumber[]

Returns#

Promise<Tag[]>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:30


quote#

â–¸ quote(str): string

Parameters#

NameType
strstring

Returns#

string

Inherited from#

BaseRepository.quote

Defined in#

system/core/backend/src/repositories/base.repository.ts:36


updateEntity#

â–¸ updateEntity(id, input): Promise<Tag>

Parameters#

NameType
idnumber
inputTag

Returns#

Promise<Tag>

Inherited from#

BaseRepository.updateEntity

Defined in#

system/core/backend/src/repositories/base.repository.ts:82


updateTag#

â–¸ updateTag(id, inputData): Promise<Tag>

Parameters#

NameType
idnumber
inputDataTTagInput

Returns#

Promise<Tag>

Defined in#

system/core/backend/src/repositories/tag.repository.ts:64