@breautek/storm
Preparing search index...
MySQLDatabase
Class MySQLDatabase
Hierarchy (
View Summary
)
Database
<
MySQL.PoolOptions
,
MySQL.PoolConnection
>
MySQLDatabase
Index
Constructors
constructor
Methods
_
add
Node
_
destroy
_
get
Connection
_
remove
Node
add
Master
add
Slave
destroy
escape
get
Connection
remove
Master
remove
Slave
escape
Constructors
constructor
new
MySQLDatabase
()
:
MySQLDatabase
Returns
MySQLDatabase
Methods
Protected
_
add
Node
_addNode
(
nodeID
:
string
,
config
:
PoolOptions
)
:
void
Parameters
nodeID
:
string
config
:
PoolOptions
Returns
void
Protected
_
destroy
_destroy
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Protected
_
get
Connection
_getConnection
(
query
:
string
,
requireWriteAccess
:
boolean
,
position
?:
IDatabasePosition
,
)
:
Promise
<
MySQLConnection
>
Parameters
query
:
string
requireWriteAccess
:
boolean
Optional
position
:
IDatabasePosition
Returns
Promise
<
MySQLConnection
>
Protected
_
remove
Node
_removeNode
(
nodeID
:
string
)
:
void
Parameters
nodeID
:
string
Returns
void
add
Master
addMaster
(
config
:
PoolOptions
)
:
void
Parameters
config
:
PoolOptions
Returns
void
add
Slave
addSlave
(
slaveID
:
string
,
config
:
PoolOptions
)
:
string
Parameters
slaveID
:
string
config
:
PoolOptions
Returns
string
destroy
destroy
()
:
Promise
<
void
>
Returns
Promise
<
void
>
escape
escape
(
value
:
any
)
:
string
Parameters
value
:
any
Returns
string
get
Connection
getConnection
(
requireWriteAccess
?:
boolean
,
nodeID
?:
string
,
requiredPosition
?:
IDatabasePosition
,
)
:
Promise
<
DatabaseConnection
<
PoolConnection
>
>
Parameters
requireWriteAccess
:
boolean
= false
Optional
nodeID
:
string
Optional
requiredPosition
:
IDatabasePosition
Returns
Promise
<
DatabaseConnection
<
PoolConnection
>
>
remove
Master
removeMaster
()
:
void
Returns
void
remove
Slave
removeSlave
(
slaveID
:
string
)
:
void
Parameters
slaveID
:
string
Returns
void
Static
escape
escape
(
value
:
any
)
:
string
Parameters
value
:
any
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
_
add
Node
_
destroy
_
get
Connection
_
remove
Node
add
Master
add
Slave
destroy
escape
get
Connection
remove
Master
remove
Slave
escape
@breautek/storm
Loading...