不要怂,就是干,撸起袖子干!

Commit f74c233c by Mick Hansen

docs: add BTREE/method example

1 parent 111de38b
Showing with 7 additions and 0 deletions
...@@ -871,6 +871,13 @@ sequelize.define('User', {}, { ...@@ -871,6 +871,13 @@ sequelize.define('User', {}, {
where: { where: {
status: 'public' status: 'public'
} }
},
// A BTREE index with a ordered field
{
name: 'title_index',
method: 'BTREE',
fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
} }
] ]
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!