Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 504034cc
authored
Apr 11, 2019
by
Erik Seliger
Committed by
Sushant
Apr 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): replication options (#10741)
1 parent
850c7fd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
types/lib/sequelize.d.ts
types/lib/sequelize.d.ts
View file @
504034c
...
@@ -86,25 +86,21 @@ export interface PoolOptions {
...
@@ -86,25 +86,21 @@ export interface PoolOptions {
validate
?(
client
?:
unknown
):
boolean
;
validate
?(
client
?:
unknown
):
boolean
;
}
}
export
interface
ConnectionOptions
{
host
?:
string
;
port
?:
string
|
number
;
username
?:
string
;
password
?:
string
;
database
?:
string
;
}
/**
/**
* Interface for replication Options in the sequelize constructor
* Interface for replication Options in the sequelize constructor
*/
*/
export
interface
ReplicationOptions
{
export
interface
ReplicationOptions
{
read
?:
{
read
:
ConnectionOptions
[];
host
?:
string
;
port
?:
string
|
number
;
username
?:
string
;
password
?:
string
;
database
?:
string
;
};
write
?:
{
write
:
ConnectionOptions
;
host
?:
string
;
port
?:
string
|
number
;
username
?:
string
;
password
?:
string
;
database
?:
string
;
};
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment