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

Commit 4a920e9f by mrHoliday Committed by Sushant

feat(sqlite): partial indexes (#8495)

1 parent 1cb6117f
......@@ -26,7 +26,8 @@ SqliteDialect.prototype.supports = _.merge(_.cloneDeep(AbstractDialect.prototype
'UNION ALL': false,
'IGNORE': ' OR IGNORE',
index: {
using: false
using: false,
where: true
},
transactionOptions: {
type: true,
......
......@@ -94,6 +94,7 @@ suite(Support.getTestDialectTeaser('SQL'), () => {
type: 'public'
}
}), {
sqlite: 'CREATE INDEX `table_type` ON `table` (`type`) WHERE `type` = \'public\'',
postgres: 'CREATE INDEX "table_type" ON "table" ("type") WHERE "type" = \'public\'',
mssql: 'CREATE INDEX [table_type] ON [table] ([type]) WHERE [type] = N\'public\''
});
......@@ -109,6 +110,7 @@ suite(Support.getTestDialectTeaser('SQL'), () => {
}
}
}), {
sqlite: 'CREATE INDEX `table_type` ON `table` (`type`) WHERE (`type` = \'group\' OR `type` = \'private\')',
postgres: 'CREATE INDEX "table_type" ON "table" ("type") WHERE ("type" = \'group\' OR "type" = \'private\')',
mssql: 'CREATE INDEX [table_type] ON [table] ([type]) WHERE ([type] = N\'group\' OR [type] = N\'private\')'
});
......@@ -121,6 +123,7 @@ suite(Support.getTestDialectTeaser('SQL'), () => {
}
}
}), {
sqlite: 'CREATE INDEX `table_type` ON `table` (`type`) WHERE `type` IS NOT NULL',
postgres: 'CREATE INDEX "table_type" ON "table" ("type") WHERE "type" IS NOT NULL',
mssql: 'CREATE INDEX [table_type] ON [table] ([type]) WHERE [type] IS NOT NULL'
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!