mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
mssql readonly (emulated, not supported natively)
This commit is contained in:
parent
4acce560ad
commit
a9038984d8
@ -47,6 +47,7 @@ const driver = {
|
||||
...driverBase,
|
||||
dumperClass: MsSqlDumper,
|
||||
dialect,
|
||||
readOnlySessions: false,
|
||||
dialectByVersion(version) {
|
||||
if (version && version.productVersionNumber < 11) {
|
||||
return {
|
||||
@ -58,7 +59,9 @@ const driver = {
|
||||
return dialect;
|
||||
},
|
||||
showConnectionField: (field, values) =>
|
||||
['authType', 'server', 'port', 'user', 'password', 'defaultDatabase', 'singleDatabase'].includes(field),
|
||||
['authType', 'server', 'port', 'user', 'password', 'defaultDatabase', 'singleDatabase', 'isReadOnly'].includes(
|
||||
field
|
||||
),
|
||||
getQuerySplitterOptions: () => mssqlSplitterOptions,
|
||||
|
||||
engine: 'mssql@dbgate-plugin-mssql',
|
||||
|
Loading…
Reference in New Issue
Block a user