Search
Preparing search index...
The search index is not available
@typexs/base
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@typexs/base
index
TypeOrmEntityController
Class TypeOrmEntityController
Hierarchy
TypeOrmEntityController
Implements
IEntityController
Index
Constructors
constructor
Properties
connection
invoker
storage
Ref
Methods
aggregate
close
connect
find
find
One
for
Class
get
Storage
Ref
name
remove
save
update
Constructors
constructor
new
Type
Orm
Entity
Controller
(
ref
:
TypeOrmStorageRef
)
:
TypeOrmEntityController
Parameters
ref:
TypeOrmStorageRef
Returns
TypeOrmEntityController
Properties
connection
connection
:
TypeOrmConnectionWrapper
Readonly
invoker
invoker
:
Invoker
Readonly
storage
Ref
storage
Ref
:
TypeOrmStorageRef
Methods
aggregate
aggregate<T>
(
cls
:
ClassType
<
T
>
, pipeline
:
any
[]
, options
?:
IAggregateOptions
)
:
Promise
<
any
[]
>
Type parameters
T
Parameters
cls:
ClassType
<
T
>
pipeline:
any
[]
options:
IAggregateOptions
= {}
Returns
Promise
<
any
[]
>
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
connect
connect
(
)
:
Promise
<
TypeOrmConnectionWrapper
>
Returns
Promise
<
TypeOrmConnectionWrapper
>
find
find<T>
(
fn
:
string
|
Function
|
ClassType
<
T
>
, conditions
?:
any
, options
?:
IFindOptions
)
:
Promise
<
T
[]
>
Type parameters
T
Parameters
fn:
string
|
Function
|
ClassType
<
T
>
conditions:
any
= null
options:
IFindOptions
= ...
Returns
Promise
<
T
[]
>
find
One
find
One<T>
(
fn
:
string
|
Function
|
ClassType
<
T
>
, conditions
?:
any
, options
?:
IFindOptions
)
:
Promise
<
T
>
Type parameters
T
Parameters
fn:
string
|
Function
|
ClassType
<
T
>
conditions:
any
= null
options:
IFindOptions
= ...
Returns
Promise
<
T
>
for
Class
for
Class
(
cls
:
string
|
Function
|
IClassRef
|
ClassType
<
any
>
)
:
IEntityRef
Parameters
cls:
string
|
Function
|
IClassRef
|
ClassType
<
any
>
Returns
IEntityRef
get
Storage
Ref
get
Storage
Ref
(
)
:
TypeOrmStorageRef
Returns the reference to handled storage
Returns
TypeOrmStorageRef
name
name
(
)
:
string
Returns
string
remove
remove<T>
(
object
:
T
|
T
[]
, options
?:
IDeleteOptions
)
:
Promise
<
number
>
remove<T>
(
object
:
ClassType
<
T
>
, condition
:
any
, options
?:
IDeleteOptions
)
:
Promise
<
number
>
Type parameters
T
Parameters
object:
T
|
T
[]
Optional
options:
IDeleteOptions
Returns
Promise
<
number
>
Type parameters
T
Parameters
object:
ClassType
<
T
>
condition:
any
Optional
options:
IDeleteOptions
Returns
Promise
<
number
>
save
save<T>
(
object
:
T
, options
?:
ISaveOptions
)
:
Promise
<
T
>
save<T>
(
object
:
T
[]
, options
?:
ISaveOptions
)
:
Promise
<
T
[]
>
Type parameters
T
Parameters
object:
T
Optional
options:
ISaveOptions
Returns
Promise
<
T
>
Type parameters
T
Parameters
object:
T
[]
Optional
options:
ISaveOptions
Returns
Promise
<
T
[]
>
update
update<T>
(
cls
:
ClassType
<
T
>
, condition
:
any
, update
:
any
, options
?:
IUpdateOptions
)
:
Promise
<
number
>
Type parameters
T
Parameters
cls:
ClassType
<
T
>
condition:
any
update:
any
options:
IUpdateOptions
= {}
Returns
Promise
<
number
>
Modules
Activator
Bootstrap
Startup
index
Type
Orm
Entity
Controller
constructor
connection
invoker
storage
Ref
aggregate
close
connect
find
find
One
for
Class
get
Storage
Ref
name
remove
save
update
Generated using
TypeDoc
Returns the reference to handled storage