mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #19432 from stackbuilders/add_subquery
Include subQuery for sequelize version 3 as well
This commit is contained in:
commit
cbea696607
5
types/sequelize/v3/index.d.ts
vendored
5
types/sequelize/v3/index.d.ts
vendored
@ -3221,6 +3221,11 @@ declare namespace sequelize {
|
||||
* Apply DISTINCT(col) for FindAndCount(all)
|
||||
*/
|
||||
distinct?: boolean;
|
||||
|
||||
/**
|
||||
* Prevents a subquery on the main table when using include
|
||||
*/
|
||||
subQuery?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -896,6 +896,7 @@ User.findAll( { attributes: [[s.fn('count', Sequelize.col('*')), 'count']] });
|
||||
User.findAll( { attributes: [[s.fn('count', Sequelize.col('*')), 'count']], group: ['sex'] });
|
||||
User.findAll( { attributes: [s.cast(s.fn('count', Sequelize.col('*')), 'INTEGER')] });
|
||||
User.findAll( { attributes: [[s.cast(s.fn('count', Sequelize.col('*')), 'INTEGER'), 'count']] });
|
||||
User.findAll( { subQuery: false, include : [User], order : [['id', 'ASC NULLS LAST']] } );
|
||||
|
||||
User.findById( 'a string' );
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user