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 4a920e9f
authored
Oct 17, 2017
by
mrHoliday
Committed by
Sushant
Oct 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(sqlite): partial indexes (#8495)
1 parent
1cb6117f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
lib/dialects/sqlite/index.js
test/unit/sql/index.test.js
lib/dialects/sqlite/index.js
View file @
4a920e9
...
@@ -26,7 +26,8 @@ SqliteDialect.prototype.supports = _.merge(_.cloneDeep(AbstractDialect.prototype
...
@@ -26,7 +26,8 @@ SqliteDialect.prototype.supports = _.merge(_.cloneDeep(AbstractDialect.prototype
'UNION ALL'
:
false
,
'UNION ALL'
:
false
,
'IGNORE'
:
' OR IGNORE'
,
'IGNORE'
:
' OR IGNORE'
,
index
:
{
index
:
{
using
:
false
using
:
false
,
where
:
true
},
},
transactionOptions
:
{
transactionOptions
:
{
type
:
true
,
type
:
true
,
...
...
test/unit/sql/index.test.js
View file @
4a920e9
...
@@ -94,6 +94,7 @@ suite(Support.getTestDialectTeaser('SQL'), () => {
...
@@ -94,6 +94,7 @@ suite(Support.getTestDialectTeaser('SQL'), () => {
type
:
'public'
type
:
'public'
}
}
}),
{
}),
{
sqlite
:
'CREATE INDEX `table_type` ON `table` (`type`) WHERE `type` = \'public\''
,
postgres
:
'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\''
mssql
:
'CREATE INDEX [table_type] ON [table] ([type]) WHERE [type] = N\'public\''
});
});
...
@@ -109,6 +110,7 @@ suite(Support.getTestDialectTeaser('SQL'), () => {
...
@@ -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\')'
,
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\')'
mssql
:
'CREATE INDEX [table_type] ON [table] ([type]) WHERE ([type] = N\'group\' OR [type] = N\'private\')'
});
});
...
@@ -121,6 +123,7 @@ suite(Support.getTestDialectTeaser('SQL'), () => {
...
@@ -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'
,
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'
mssql
:
'CREATE INDEX [table_type] ON [table] ([type]) WHERE [type] IS NOT NULL'
});
});
...
...
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