export function keys<O>(o: O) {
return Object.keys(o) as (keyof O)[];
}
| // test case | |
| var currentUrl = window.location.toString(); | |
| for (var i = 0; i < 105; i++) { | |
| window.history.replaceState({location: currentUrl}, "", currentUrl); | |
| } |
I have the following JS code:
db.models
.Vobject
.findAndCountAll({
where: [{type: 1 }],
include: [{model: db.models.Tag, where: {name: ['iron', 'tefal']}}],
limit: 10
})| // create field but not create fk index | |
| User.hasMany(Media); | |
| Media.belongsTo(User); | |
| Media.hasOne(User); | |
| User.belongsTo(Media); | |
| // foreignKeyConstraint create fk index | |
| User.hasMany(Media, {as: 'Media', foreignKeyConstraint: true}); | |
| Media.belongsTo(User); |