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 555dbe1f
authored
Sep 03, 2019
by
wata-lb
Committed by
Sushant
Sep 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): add PoolOptions.evict (#11378) (#11379)
1 parent
d776d7a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
types/lib/sequelize.d.ts
types/test/sequelize.ts
types/lib/sequelize.d.ts
View file @
555dbe1
...
...
@@ -97,6 +97,11 @@ export interface PoolOptions {
acquire
?:
number
;
/**
* The time interval, in milliseconds, after which sequelize-pool will remove idle connections.
*/
evict
?:
number
;
/**
* A function that validates a connection. Called with client. The default function checks that client is an
* object, and that its state is not disconnected
*/
...
...
types/test/sequelize.ts
View file @
555dbe1
...
...
@@ -15,6 +15,9 @@ export const sequelize = new Sequelize({
match
:
[
'hurr'
],
},
dialectModule
:
{},
pool
:
{
evict
:
1000
,
}
});
const
conn
=
sequelize
.
connectionManager
;
...
...
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