Search
Preparing search index...
The search index is not available
@breautek/storm
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
MySQLDatabase
Class MySQLDatabase
Hierarchy
Database
MySQLDatabase
Index
Constructors
constructor
Methods
_add
Node
_get
Connection
_remove
Node
add
Master
add
Slave
escape
get
Connection
remove
Master
remove
Slave
escape
Constructors
constructor
new
MySQLDatabase
(
)
:
MySQLDatabase
Returns
MySQLDatabase
Methods
Protected
_add
Node
_add
Node
(
nodeID
:
string
, config
:
PoolConfig
)
:
void
Parameters
nodeID:
string
config:
PoolConfig
Returns
void
Protected
_get
Connection
_get
Connection
(
query
:
string
, requireWriteAccess
:
boolean
)
:
Promise
<
MySQLConnection
>
Parameters
query:
string
requireWriteAccess:
boolean
Returns
Promise
<
MySQLConnection
>
Protected
_remove
Node
_remove
Node
(
nodeID
:
string
)
:
void
Parameters
nodeID:
string
Returns
void
add
Master
add
Master
(
config
:
any
)
:
void
Parameters
config:
any
Returns
void
add
Slave
add
Slave
(
slaveID
:
string
, config
:
any
)
:
string
Parameters
slaveID:
string
config:
any
Returns
string
escape
escape
(
query
:
string
)
:
string
Parameters
query:
string
Returns
string
get
Connection
get
Connection
(
requireWriteAccess
?:
boolean
, nodeID
?:
string
)
:
Promise
<
DatabaseConnection
>
Parameters
Default value
requireWriteAccess:
boolean
= false
Optional
nodeID:
string
Returns
Promise
<
DatabaseConnection
>
remove
Master
remove
Master
(
)
:
void
Returns
void
remove
Slave
remove
Slave
(
slaveID
:
string
)
:
void
Parameters
slaveID:
string
Returns
void
Static
escape
escape
(
query
:
string
)
:
string
Parameters
query:
string
Returns
string
Globals
MySQLDatabase
constructor
_add
Node
_get
Connection
_remove
Node
add
Master
add
Slave
escape
get
Connection
remove
Master
remove
Slave
escape
Generated using
TypeDoc