Update types
This commit is contained in:
parent
f0a124bee6
commit
e3d81a581a
@ -13,9 +13,12 @@ type Credentials = {
|
|||||||
host: string,
|
host: string,
|
||||||
port: number,
|
port: number,
|
||||||
database: string,
|
database: string,
|
||||||
node: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ExtendedCredentials = {
|
||||||
|
node: string
|
||||||
|
} & Credentials
|
||||||
|
|
||||||
export type MariaOptions = {
|
export type MariaOptions = {
|
||||||
load?: boolean,
|
load?: boolean,
|
||||||
cluster?: PoolClusterConfig,
|
cluster?: PoolClusterConfig,
|
||||||
@ -86,7 +89,7 @@ class MariaDB
|
|||||||
#load: boolean;
|
#load: boolean;
|
||||||
|
|
||||||
#config: MariaOptions;
|
#config: MariaOptions;
|
||||||
#credentials: Credentials[];
|
#credentials: ExtendedCredentials[];
|
||||||
#cluster: boolean;
|
#cluster: boolean;
|
||||||
#pool: PoolCluster | null;
|
#pool: PoolCluster | null;
|
||||||
#nodes: Node[];
|
#nodes: Node[];
|
||||||
|
Loading…
Reference in New Issue
Block a user