@sourceloop/core / Exports / DefaultTransactionalUserModifyRepository
Class: DefaultTransactionalUserModifyRepository<T, ID, Relations>¶
Type parameters¶
Name | Type |
---|---|
T |
extends UserModifiableEntity |
ID |
ID |
Relations |
extends object = {} |
Hierarchy¶
-
DefaultTransactionSoftCrudRepository
<T
,ID
,Relations
>↳
DefaultTransactionalUserModifyRepository
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new DefaultTransactionalUserModifyRepository<T
, ID
, Relations
>(entityClass
, dataSource
, getCurrentUser
)
Type parameters¶
Name | Type |
---|---|
T |
extends UserModifiableEntity <DataObject <Model >, T > |
ID |
ID |
Relations |
extends object = {} |
Parameters¶
Name | Type |
---|---|
entityClass |
typeof Entity & { prototype : T } |
dataSource |
DataSource |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultTransactionSoftCrudRepository<T, ID, Relations\>.constructor
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:25
Properties¶
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultTransactionSoftCrudRepository.getCurrentUser
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:30
Methods¶
create¶
▸ create(entity
, options?
): Promise
<T
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <T > |
options? |
Options |
Returns¶
Promise
<T
>
Overrides¶
DefaultTransactionSoftCrudRepository.create
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:37
createAll¶
▸ createAll(entities
, options?
): Promise
<T
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <T >[] |
options? |
Options |
Returns¶
Promise
<T
[]>
Overrides¶
DefaultTransactionSoftCrudRepository.createAll
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:49
replaceById¶
▸ replaceById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
ID |
data |
DataObject <T > |
options? |
Options |
Returns¶
Promise
<void
>
Overrides¶
DefaultTransactionSoftCrudRepository.replaceById
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:113
save¶
▸ save(entity
, options?
): Promise
<T
>
Parameters¶
Name | Type |
---|---|
entity |
T |
options? |
Options |
Returns¶
Promise
<T
>
Overrides¶
DefaultTransactionSoftCrudRepository.save
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:63
update¶
▸ update(entity
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
entity |
T |
options? |
Options |
Returns¶
Promise
<void
>
Overrides¶
DefaultTransactionSoftCrudRepository.update
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:73
updateAll¶
▸ updateAll(data
, where?
, options?
): Promise
<Count
>
Parameters¶
Name | Type |
---|---|
data |
DataObject <T > |
where? |
Where <T > |
options? |
Options |
Returns¶
Promise
<Count
>
Overrides¶
DefaultTransactionSoftCrudRepository.updateAll
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:83
updateById¶
▸ updateById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
ID |
data |
DataObject <T > |
options? |
Options |
Returns¶
Promise
<void
>
Overrides¶
DefaultTransactionSoftCrudRepository.updateById
Defined in¶
packages/core/src/repositories/default-transactional-user-modify-repository.base.ts:98