File tree Expand file tree Collapse file tree 10 files changed +199
-169
lines changed Expand file tree Collapse file tree 10 files changed +199
-169
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ export type DialectSupports = {
112
112
IREGEXP : boolean ,
113
113
HSTORE : boolean ,
114
114
TSVECTOR : boolean ,
115
+ /** Whether this dialect supports SQL JSON functions */
116
+ jsonOperations : boolean ,
115
117
tmpTableTrigger : boolean ,
116
118
indexHints : boolean ,
117
119
searchPath : boolean ,
@@ -217,6 +219,7 @@ export abstract class AbstractDialect {
217
219
GEOGRAPHY : false ,
218
220
HSTORE : false ,
219
221
TSVECTOR : false ,
222
+ jsonOperations : false ,
220
223
deferrableConstraints : false ,
221
224
tmpTableTrigger : false ,
222
225
indexHints : false ,
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export class MariaDbDialect extends AbstractDialect {
41
41
GEOMETRY : true ,
42
42
JSON : true ,
43
43
REGEXP : true ,
44
+ jsonOperations : true ,
44
45
} ,
45
46
) ;
46
47
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export class MssqlDialect extends AbstractDialect {
40
40
} ,
41
41
NUMERIC : true ,
42
42
tmpTableTrigger : true ,
43
+ // TODO: add support for JSON queries https://learn.microsoft.com/en-us/sql/relational-databases/json/json-data-sql-server?view=sql-server-ver16
44
+ jsonOperations : false ,
43
45
} ) ;
44
46
45
47
constructor ( sequelize ) {
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export class MysqlDialect extends AbstractDialect {
40
40
NUMERIC : true ,
41
41
GEOMETRY : true ,
42
42
JSON : true ,
43
+ jsonOperations : true ,
43
44
REGEXP : true ,
44
45
} ,
45
46
) ;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export class PostgresDialect extends AbstractDialect {
51
51
JSONB : true ,
52
52
HSTORE : true ,
53
53
TSVECTOR : true ,
54
+ jsonOperations : true ,
54
55
deferrableConstraints : true ,
55
56
searchPath : true ,
56
57
escapeStringConstants : true ,
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ export class SqliteDialect extends AbstractDialect {
35
35
} ,
36
36
groupedLimit : false ,
37
37
JSON : true ,
38
+ // TODO: add support for JSON operations https://www.sqlite.org/json1.html (bundled in sqlite3)
39
+ jsonOperations : false ,
38
40
} ) ;
39
41
40
42
constructor ( sequelize ) {
You can’t perform that action at this time.
0 commit comments