Preparing search index...
The search index is not available
Documentation
Documentation
@capsule-cat/propel-sequelize
CRUDRepository
Class CRUDRepository<T, PrimaryKeyType>
Abstract
Type Parameters
T
extends
object
PrimaryKeyType
extends
Identifier
|
undefined
Hierarchy
BaseRepository
<
T
>
CRUDRepository
Index
Constructors
constructor
Methods
create
delete
get
get
All
get
Model
update
Constructors
constructor
new CRUDRepository
<
T
,
PrimaryKeyType
>
(
modelKey
?:
string
)
:
CRUDRepository
<
T
,
PrimaryKeyType
>
Type Parameters
T
extends
object
PrimaryKeyType
extends
undefined
|
Identifier
Parameters
Optional
modelKey:
string
Returns
CRUDRepository
<
T
,
PrimaryKeyType
>
Methods
create
create
(
data
:
MakeNullishOptional
<
T
>
)
:
Promise
<
null
|
Model
<
T
,
T
>
>
Parameters
data:
MakeNullishOptional
<
T
>
Returns
Promise
<
null
|
Model
<
T
,
T
>
>
delete
delete
(
id
:
PrimaryKeyType
)
:
Promise
<
number
>
Parameters
id:
PrimaryKeyType
Returns
Promise
<
number
>
get
get
(
id
:
PrimaryKeyType
)
:
Promise
<
null
|
Model
<
T
,
T
>
>
Parameters
id:
PrimaryKeyType
Returns
Promise
<
null
|
Model
<
T
,
T
>
>
get
All
get
All
(
)
:
Promise
<
Model
<
T
,
T
>
[]
>
Returns
Promise
<
Model
<
T
,
T
>
[]
>
Protected
get
Model
get
Model
(
)
:
ModelStatic
<
Model
<
T
,
T
>
>
Returns
ModelStatic
<
Model
<
T
,
T
>
>
update
update
(
id
:
PrimaryKeyType
, data
:
MakeNullishOptional
<
T
>
)
:
Promise
<
number
>
Parameters
id:
PrimaryKeyType
data:
MakeNullishOptional
<
T
>
Returns
Promise
<
number
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Documentation
@capsule-
cat/propel-
cli
@capsule-
cat/propel-
core
@capsule-
cat/propel-
express
@capsule-
cat/propel-
forward
@capsule-
cat/propel-
sequelize
@capsule-
cat/propel-
server
CRUDRepository
constructor
create
delete
get
get
All
get
Model
update
Generated using
TypeDoc