Preparing search index...
The search index is not available
Deepkit
Deepkit
mongo
MongoPersistence
Class MongoPersistence
Hierarchy
DatabasePersistence
MongoPersistence
Index
Constructors
constructor
Properties
client
connection?
orm
Sequences
session
Methods
get
Connection
insert
release
remove
update
Constructors
constructor
new
Mongo
Persistence
(
client
:
MongoClient
, ormSequences
:
ReflectionClass
<
any
>
, session
:
DatabaseSession
<
any
>
)
:
MongoPersistence
Parameters
client:
MongoClient
ormSequences:
ReflectionClass
<
any
>
session:
DatabaseSession
<
any
>
Returns
MongoPersistence
Properties
Protected
client
client
:
MongoClient
Protected
Optional
connection
connection
?:
MongoConnection
Protected
orm
Sequences
orm
Sequences
:
ReflectionClass
<
any
>
Protected
session
session
:
DatabaseSession
<
any
>
Methods
get
Connection
get
Connection
(
)
:
Promise
<
MongoConnection
>
Returns
Promise
<
MongoConnection
>
insert
insert
<
T
>
(
classSchema
:
ReflectionClass
<
T
>
, items
:
T
[]
)
:
Promise
<
void
>
Type Parameters
T
extends
OrmEntity
Parameters
classSchema:
ReflectionClass
<
T
>
items:
T
[]
Returns
Promise
<
void
>
release
release
(
)
:
void
Returns
void
remove
remove
<
T
>
(
classSchema
:
ReflectionClass
<
T
>
, items
:
T
[]
)
:
Promise
<
void
>
Type Parameters
T
extends
OrmEntity
Parameters
classSchema:
ReflectionClass
<
T
>
items:
T
[]
Returns
Promise
<
void
>
update
update
<
T
>
(
classSchema
:
ReflectionClass
<
T
>
, changeSets
:
DatabasePersistenceChangeSet
<
T
>
[]
)
:
Promise
<
void
>
Type Parameters
T
extends
OrmEntity
Parameters
classSchema:
ReflectionClass
<
T
>
changeSets:
DatabasePersistenceChangeSet
<
T
>
[]
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Deepkit
angular-
universal
api-
console-
api
api-
console-
module
app
broker
bson
core
core-
rxjs
create-
app
crypto
event
framework
framework-
debug-
api
http
injector
logger
mongo
mysql
orm
orm-
browser-
api
orm-
integration
postgres
rpc
rpc-
tcp
skeleton
sql
sqlite
stopwatch
template
type
type-
compiler
workflow
Mongo
Persistence
constructor
client
connection?
orm
Sequences
session
get
Connection
insert
release
remove
update
Generated using
TypeDoc