plugin-data-source-mssql 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +0 -9
- package/dist/externalVersion.js +0 -9
- package/dist/index.js +0 -9
- package/dist/server/data-source/MssqlCollectionManager.js +0 -9
- package/dist/server/data-source/MssqlExternalDataSource.js +0 -9
- package/dist/server/data-source/MssqlIntrospector.d.ts +2 -2
- package/dist/server/data-source/MssqlIntrospector.js +0 -9
- package/dist/server/data-source/MssqlRepository.js +0 -9
- package/dist/server/data-source/MssqlSmartCursorBuilder.js +0 -9
- package/dist/server/dialects/mssql-dialect.d.ts +1 -1
- package/dist/server/dialects/mssql-dialect.js +0 -9
- package/dist/server/index.js +0 -9
- package/dist/server/plugin.js +0 -9
- package/dist/server/utils.js +0 -9
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@emotion/css"),require("@formily/react"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/plugin-data-source-manager/client"),require("antd"),require("react-router-dom"),require("react-i18next")):"function"==typeof define&&define.amd?define("plugin-data-source-mssql",["react","@emotion/css","@formily/react","@nocobase/client","@ant-design/icons","@nocobase/plugin-data-source-manager/client","antd","react-router-dom","react-i18next"],t):"object"==typeof exports?exports["plugin-data-source-mssql"]=t(require("react"),require("@emotion/css"),require("@formily/react"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/plugin-data-source-manager/client"),require("antd"),require("react-router-dom"),require("react-i18next")):e["plugin-data-source-mssql"]=t(e.react,e["@emotion/css"],e["@formily/react"],e["@nocobase/client"],e["@ant-design/icons"],e["@nocobase/plugin-data-source-manager/client"],e.antd,e["react-router-dom"],e["react-i18next"])}(self,function(e,t,n,r,o,a,i,c,l){return function(){"use strict";var u={482:function(e){e.exports=o},964:function(e){e.exports=t},505:function(e){e.exports=n},772:function(e){e.exports=r},904:function(e){e.exports=a},721:function(e){e.exports=i},156:function(t){t.exports=e},238:function(e){e.exports=l},128:function(e){e.exports=c}},s={};function p(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return!function(){p.r(f),p.d(f,{default:function(){return F},PluginDataSourceMssqlClient:function(){return E}});var e=p(772),t=p(904),n=p.n(t),r=p(156),o=p.n(r),a=p(505),i=p(721),c=p(238);function l(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}var u=function(t){var n,u=t.CollectionsTableField,s=t.loadCollections,p=t.from;console.log("[MSSQL Plugin] ConfigForm rendering...");var f=(0,e.useAPIClient)(),m=(0,a.useForm)(),d=(0,c.useTranslation)().t,y=u({NAMESPACE:"data-source-manager",t:d}),b=y.CollectionsTable,h=y.createCollectionsSchema,v=y.Text,x=y.addAllCollectionsSchema,g=(0,r.useCallback)((n=function(){var e,t,n,r,o,a,c,l,u;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){var l=[a,c];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(s){switch(s.label){case 0:return[4,m.submit()];case 1:s.sent(),e=m.values,s.label=2;case 2:return s.trys.push([2,4,,5]),[4,f.request({url:"dataSources:testConnection",method:"post",data:{values:{type:"mssql",options:e.options||e}}})];case 3:return s.sent(),i.message.success(d("Connection successful")),[3,5];case 4:return u=(null==(t=s.sent())||null==(a=t.response)||null==(o=a.data)||null==(r=o.errors)||null==(n=r[0])?void 0:n.message)||(null==t||null==(l=t.response)||null==(c=l.data)?void 0:c.message)||t.message,i.message.error(u),[2];case 5:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function i(e){l(a,r,o,i,c,"next",e)}function c(e){l(a,r,o,i,c,"throw",e)}i(void 0)})}),[f,m,d]);return o().createElement(e.SchemaComponent,{scope:{CollectionsTableField:u,loadCollections:s,handleTestConnection:g,from:p,t:d,CollectionsTable:b,createCollectionsSchema:h,Text:v,addAllCollectionsSchema:x},components:{CollectionsTable:b,Text:v},schema:{type:"object",properties:{type:{type:"string","x-decorator":"FormItem","x-component":"Input","x-hidden":!0},key:{type:"string",title:d("Data source name"),required:!0,"x-decorator":"FormItem","x-component":"Input"},displayName:{type:"string",title:d("Display name"),required:!0,"x-decorator":"FormItem","x-component":"Input"},options:{type:"object",properties:{host:{type:"string",title:d("Host"),required:!0,"x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:"localhost"}},port:{type:"number",title:d("Port"),required:!0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{min:1,max:65535},default:1433},database:{type:"string",title:d("Database"),required:!0,"x-decorator":"FormItem","x-component":"Input"},schema:{type:"string",title:d("Schema"),"x-decorator":"FormItem","x-component":"Input"},username:{type:"string",title:d("Username"),required:!0,"x-decorator":"FormItem","x-component":"Input"},password:{type:"string",title:d("Password"),"x-decorator":"FormItem","x-component":"Password"},encrypt:{type:"boolean",title:d("Encrypt"),"x-decorator":"FormItem","x-component":"Checkbox"},tablePrefix:{type:"string",title:d("Table prefix"),"x-decorator":"FormItem","x-component":"Input"},addAllCollections:{type:"boolean",title:d("Load all collections"),"x-decorator":"FormItem","x-component":"Checkbox",default:!0},collections:h(p,s)}}}}})},s=p(482),m=p(964),d=p(128);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){b(a,r,o,i,c,"next",e)}function c(e){b(a,r,o,i,c,"throw",e)}i(void 0)})}}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function x(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){var l=[a,c];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function g(){var e,t,n=(e=["\n .ant-modal-body {\n margin-left: 35px;\n margin-bottom: 35px;\n .ant-checkbox-wrapper {\n height: 25px;\n }\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return g=function(){return n},n}var w=function(t){var n=(0,e.useRecord)();return o().createElement(O,v({item:n},t))},C=function(){var t=(0,e.useResourceActionContext)().refresh,n=(0,d.useParams)().name,r=(0,e.useRecord)(),o=(0,e.useAPIClient)(),c=(0,a.useForm)(),l=((null==c?void 0:c.values)||{}).cascade,u=null==r?void 0:r.name;return{run:function(){return h(function(){var e,r,a,c,s;return x(this,function(p){switch(p.label){case 0:if(!u)return i.message.error("Collection name is missing"),[2];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,o.request({url:"dataSources/".concat(n,"/collections:destroy"),method:"post",params:{filterByTk:u,cascade:l}})];case 2:return p.sent(),i.message.success("Collection deleted successfully"),t(),[3,4];case 3:throw e=p.sent(),i.message.error((null==e||null==(s=e.response)||null==(c=s.data)||null==(a=c.errors)||null==(r=a[0])?void 0:r.message)||"Failed to delete collection"),e;case 4:return[2]}})})()}}},S=function(){var t=C().run,n=(0,e.useCollectionManager_deprecated)().refreshCM;return{run:function(){return h(function(){return x(this,function(e){switch(e.label){case 0:return[4,t()];case 1:return e.sent(),[4,n()];case 2:return e.sent(),[2]}})})()}}},O=function(t){var n,a=t.scope,l=t.getContainer,u=t.item,p=t.children,f=t.isBulk,d=t.useAction,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["scope","getContainer","item","children","isBulk","useAction"]),h=(0,c.useTranslation)().t,x=(n=(0,r.useState)(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,c=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),a.length!==t);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(c)throw r}}return a}}(n,2)||function(e,t){if(e){if("string"==typeof e)return y(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=x[0],C=x[1];return o().createElement(e.RecordProvider,{record:u},o().createElement(e.ActionContextProvider,{value:{visible:w,setVisible:C}},f?o().createElement(i.Button,{icon:o().createElement(s.DeleteOutlined,null),onClick:function(){return C(!0)}},p||h("Delete")):o().createElement("a",v({onClick:function(){return C(!0)}},b),p||h("Delete")),o().createElement(e.SchemaComponent,{schema:{type:"object",properties:{deleteCollection:{type:"void","x-decorator":"Form","x-component":"Action.Modal",title:o().createElement(function(){return o().createElement("span",null,o().createElement(s.ExclamationCircleFilled,{style:{color:"#faad14",marginRight:"12px",fontSize:"22px"}}),o().createElement("span",{style:{fontSize:"19px"}},h("Delete collection")))},null),"x-component-props":{width:520,getContainer:"{{ getContainer }}",className:(0,m.css)(g())},properties:{info:{type:"string","x-component":"div","x-content":"{{t('Are you sure you want to delete it?')}}"},cascade:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox",default:!1,"x-content":h("Automatically drop objects that depend on the collection (such as views), and in turn all objects that depend on those objects")},footer:{type:"void","x-component":"Action.Modal.Footer",properties:{action1:{title:'{{ t("Cancel") }}',"x-component":"Action","x-component-props":{useAction:"{{ useCancelAction }}"}},action2:{title:'{{ t("Ok") }}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ useDestroyCollectionAction }}",style:{marginLeft:"8px"}}}}}}}}},scope:v({getContainer:l,useDestroyCollectionAction:d||S,useCancelAction:e.useCancelAction},a)})))};function j(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}function P(e,t,n){return(P=I()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&A(o,n.prototype),o}).apply(null,arguments)}O.displayName="MssqlDeleteCollectionAction";function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return P(e,arguments,q(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),A(n,e)})(e)}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}var E=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return e=r,t=arguments,e=q(e),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,I()?Reflect.construct(e,t||[],q(this).constructor):e.apply(this,t))}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&A(r,e),t=[{key:"load",value:function(){var e,t=this;return(e=function(){return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){var l=[a,c];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){return console.log("[MSSQL Plugin] Client loading..."),t.app.pm.get(n()).registerType("mssql",{name:"mssql",label:"External MSSQL",icon:"DatabaseOutlined",color:"blue",DataSourceSettingsForm:u,DeleteCollection:w,disableTestConnection:!1,disableAddFields:!1,allowCollectionDeletion:!0}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){j(a,r,o,i,c,"next",e)}function c(e){j(a,r,o,i,c,"throw",e)}i(void 0)})})()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(k(e.Plugin)),F=E}(),f}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
module.exports = {
|
|
11
2
|
"@nocobase/client": "2.0.47",
|
|
12
3
|
"@nocobase/plugin-data-source-manager": "2.0.47",
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __create = Object.create;
|
|
11
2
|
var __defProp = Object.defineProperty;
|
|
12
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __defProp = Object.defineProperty;
|
|
11
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __create = Object.create;
|
|
11
2
|
var __defProp = Object.defineProperty;
|
|
12
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -42,11 +42,11 @@ export declare class MssqlIntrospector extends DatabaseIntrospector {
|
|
|
42
42
|
* Override getTableColumnsInfo to handle MSSQL-specific column metadata.
|
|
43
43
|
* Adds PK detection fallback via sys.indexes query.
|
|
44
44
|
*/
|
|
45
|
-
getTableColumnsInfo(tableInfo: tableInfo): Promise<
|
|
45
|
+
getTableColumnsInfo(tableInfo: tableInfo): Promise<import("sequelize").ColumnsDescription>;
|
|
46
46
|
/**
|
|
47
47
|
* Override getTableConstraints to handle MSSQL-specific index format.
|
|
48
48
|
*/
|
|
49
|
-
getTableConstraints(tableInfo: tableInfo): Promise<
|
|
49
|
+
getTableConstraints(tableInfo: tableInfo): Promise<object>;
|
|
50
50
|
/**
|
|
51
51
|
* Override to handle MSSQL auto-increment detection.
|
|
52
52
|
* MSSQL uses IDENTITY columns, not serial/nextval sequences.
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __defProp = Object.defineProperty;
|
|
11
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __defProp = Object.defineProperty;
|
|
11
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __create = Object.create;
|
|
11
2
|
var __defProp = Object.defineProperty;
|
|
12
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -14,5 +14,5 @@ export declare class MssqlDialect extends BaseDialect {
|
|
|
14
14
|
get: (v: string) => string;
|
|
15
15
|
version: string;
|
|
16
16
|
};
|
|
17
|
-
getSequelizeOptions(options: DatabaseOptions):
|
|
17
|
+
getSequelizeOptions(options: DatabaseOptions): import("@nocobase/database").IDatabaseOptions;
|
|
18
18
|
}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __defProp = Object.defineProperty;
|
|
11
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
package/dist/server/index.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __create = Object.create;
|
|
11
2
|
var __defProp = Object.defineProperty;
|
|
12
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist/server/plugin.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __defProp = Object.defineProperty;
|
|
11
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
package/dist/server/utils.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
var __defProp = Object.defineProperty;
|
|
11
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "Data source: MSSQL",
|
|
4
4
|
"displayName.ru-RU": "Источник данных: MSSQL",
|
|
5
5
|
"displayName.zh-CN": "数据源:MSSQL",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.7",
|
|
7
7
|
"description": "External MSSQL data source support for NocoBase.",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"main": "./dist/server/index.js",
|