Preparing search index...
The search index is not available
Deepkit
Deepkit
sql
SQLPersistence
Class SQLPersistence
Hierarchy
DatabasePersistence
SQLPersistence
Index
Constructors
constructor
Properties
connection?
connection
Pool
platform
session
Methods
batch
Insert
batch
Update
do
Insert
get
Connection
get
InsertSQL
get
Placeholder
Symbol
insert
populate
Auto
Increment
Fields
prepare
Auto
Increment
release
remove
reset
Placeholder
Symbol
update
Constructors
constructor
new SQLPersistence
(
platform
:
DefaultPlatform
, connectionPool
:
SQLConnectionPool
, session
:
DatabaseSession
<
SQLDatabaseAdapter
>
)
:
SQLPersistence
Parameters
platform:
DefaultPlatform
connectionPool:
SQLConnectionPool
session:
DatabaseSession
<
SQLDatabaseAdapter
>
Returns
SQLPersistence
Properties
Protected
Optional
connection
connection
?:
SQLConnection
connection
Pool
connection
Pool
:
SQLConnectionPool
Protected
platform
platform
:
DefaultPlatform
Protected
session
session
:
DatabaseSession
<
SQLDatabaseAdapter
>
Methods
Protected
batch
Insert
batch
Insert
<
T
>
(
classSchema
:
ReflectionClass
<
T
>
, items
:
T
[]
)
:
Promise
<
void
>
Type Parameters
T
Parameters
classSchema:
ReflectionClass
<
T
>
items:
T
[]
Returns
Promise
<
void
>
batch
Update
batch
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
>
Protected
do
Insert
do
Insert
<
T
>
(
classSchema
:
ReflectionClass
<
T
>
, items
:
T
[]
)
:
Promise
<
void
>
Type Parameters
T
Parameters
classSchema:
ReflectionClass
<
T
>
items:
T
[]
Returns
Promise
<
void
>
get
Connection
get
Connection
(
)
:
Promise
<
Promise
<
SQLConnection
>
>
Returns
Promise
<
Promise
<
SQLConnection
>
>
Protected
get
InsertSQL
get
InsertSQL
(
classSchema
:
ReflectionClass
<
any
>
, fields
:
string
[]
, values
:
string
[]
)
:
string
Parameters
classSchema:
ReflectionClass
<
any
>
fields:
string
[]
values:
string
[]
Returns
string
Protected
get
Placeholder
Symbol
get
Placeholder
Symbol
(
)
:
string
Returns
string
insert
insert
<
T
>
(
classSchema
:
ReflectionClass
<
T
>
, items
:
T
[]
)
:
Promise
<
void
>
Type Parameters
T
extends
OrmEntity
Parameters
classSchema:
ReflectionClass
<
T
>
items:
T
[]
Returns
Promise
<
void
>
Protected
populate
Auto
Increment
Fields
populate
Auto
Increment
Fields
<
T
>
(
classSchema
:
ReflectionClass
<
T
>
, items
:
T
[]
)
:
void
Type Parameters
T
Parameters
classSchema:
ReflectionClass
<
T
>
items:
T
[]
Returns
void
Protected
prepare
Auto
Increment
prepare
Auto
Increment
(
classSchema
:
ReflectionClass
<
any
>
, count
:
number
)
:
void
Parameters
classSchema:
ReflectionClass
<
any
>
count:
number
Returns
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
>
Protected
reset
Placeholder
Symbol
reset
Placeholder
Symbol
(
)
:
void
Returns
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
SQLPersistence
constructor
connection?
connection
Pool
platform
session
batch
Insert
batch
Update
do
Insert
get
Connection
get
InsertSQL
get
Placeholder
Symbol
insert
populate
Auto
Increment
Fields
prepare
Auto
Increment
release
remove
reset
Placeholder
Symbol
update
Generated using
TypeDoc