You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(()=>{var e={80972:(e,t)=>{"use strict";function n(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function r(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!d(e[0])||!d(e[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r)}function i(e,t,r){void 0===r&&(r={});for(var i=0,s=e;i<s.length;i ){var a=s[i];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var =0;<a[a.length-1].length; )if(a[a.length-1][]!==a[0][_])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:e},t,r)}function s(e,t,r){if(void 0===r&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:e},t,r)}function a(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function (e,t,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:e},t,r)}function o(e,t,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:e},t,r)}function u(e,t,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:e},t,r)}function E(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n " units is invalid");return er}function c(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n " units is invalid");return e/r}function l(e){return e%(2Math.PI)180/Math.PI}function d(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100t.earthRadius,centimetres:100t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084t.earthRadius,inches:39.37t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3t.earthRadius,millimetres:1e3t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:1.0936t.earthRadius},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1.0936133},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=n,t.geometry=function(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return r(t).geometry;case"LineString":return s(t).geometry;case"Polygon":return i(t).geometry;case"MultiPoint":return o(t).geometry;case"MultiLineString":return (t).geometry;case"MultiPolygon":return u(t).geometry;default:throw new Error(e " is invalid")}},t.point=r,t.points=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return r(e,t)})),n)},t.polygon=i,t.polygons=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return i(e,t)})),n)},t.lineString=s,t.lineStrings=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return s(e,t)})),n)},t.featureCollection=a,t.multiLineString=,t.multiPoint=o,t.multiPolygon=u,t.geometryCollection=function(e,t,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(en)/n},t.radiansToLength=E,t.lengthToRadians=c,t.lengthToDegrees=function(e,t){return l(c(e,t))},t.bearingToAzimuth=function(e){var t=e60;return t<0&&(t =360),t},t.radiansToDegrees=l,t.degreesToRadians=function(e){return e60Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return E(c(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[n];if(!i)throw new Error("invalid original units");var s=t.areaFactors[r];if(!s)throw new Error("invalid final units");return e/i*s},t.isNumber=d,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!d(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},41941:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{o(r.next(e))}catch(e){s(e)}}function (e){try{o(r.throw(e))}catch(e){s(e)}}function o(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,)}o((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseDumper=void 0;const s=i(n(79896)),a=n(43106),=i(n(16928)),o=i(n(24434));class u extends o.default{constructor(e,t){if(super(),this._tables=e,this._options=t,this._isCancelled=!1,this._outputFileStream=s.default.createWriteStream(this._options.outputFile,{flags:"w"}),this._processedStream=null,this._state={},this._options.compress){const e=(0,a.createGzip)();e.pipe(this._outputFileStream),this._processedStream=e}else this._processedStream=this._outputFileStream;this._processedStream.once("error",(e=>{this._isCancelled=!0,this.emit("error",e)}))}run(){return r(this,void 0,void 0,(function*(){try{this.emit("start",this),yield this.dump()}catch(e){throw this.emit("error",e),e}finally{this._processedStream.end(),this.emit("end")}}))}get isCancelled(){return this._isCancelled}get outputFile(){return this._options.outputFile}outputFileExists(){return s.default.existsSync(this._options.outputFile)}cancel(){this._isCancelled=!0,this.emit("cancel"),this.emitUpdate({op:"cancelling"})}emitUpdate(e){this.emit("progress",Object.assign(Object.assign({},this._state),e))}writeString(e){if(!this._isCancelled){try{s.default.accessSync(this._options.outputFile)}catch(e){this.isCancelled=!0;const t=.default.basename(this._options.outputFile);this.emit("error",The file ${t} is not accessible)}this._processedStream.write(e)}}dump(){throw new Error('Exporter must implement the "dump" method')}}t.BaseDumper=u},25556:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{o(r.next(e))}catch(e){s(e)}}function (e){try{o(r.throw(e))}catch(e){s(e)}}function o(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,)}o((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MySqlClient=void 0,t.MySqlClient=class{constructor(e,t){this.connection=e,this.schema=t}getTableColumns({schema:e,table:t}){return n(this,void 0,void 0,(function*(){const{rows:n}=yield this.raw(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '${e}' AND TABLE_NAME='${t}'),{rows:r}=yield this.raw(SHOW CREATE TABLE \${e}`.`${t}`),i=r.map((e=>{if(!e["Create Table"])return!1;let t=0;return e["Create Table"].split("").reduce(((e,n)=>(")"===n&&t--,0!==t&&(e =n),"("===n&&t ,e)),"").replace(/\n/g,"").split(/,\s?(?![^(]*\))/).map((e=>{try{const t=e.trim().split(" "),n=t.slice(0,2);if(""!==n[0].charAt(0))return!1;const r=t.slice(2).join(" ");let i=null;r.includes("DEFAULT")&&(i=r.match(/(?<=DEFAULT ).*?$/gs)[0].split(" COMMEN
This is happen when i export database (all table) to another database
The text was updated successfully, but these errors were encountered:
(()=>{var e={80972:(e,t)=>{"use strict";function n(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function r(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!d(e[0])||!d(e[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r)}function i(e,t,r){void 0===r&&(r={});for(var i=0,s=e;i<s.length;i ){var a=s[i];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var =0;<a[a.length-1].length; )if(a[a.length-1][]!==a[0][_])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:e},t,r)}function s(e,t,r){if(void 0===r&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:e},t,r)}function a(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function (e,t,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:e},t,r)}function o(e,t,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:e},t,r)}function u(e,t,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:e},t,r)}function E(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n " units is invalid");return er}function c(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n " units is invalid");return e/r}function l(e){return e%(2Math.PI)180/Math.PI}function d(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100t.earthRadius,centimetres:100t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084t.earthRadius,inches:39.37t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3t.earthRadius,millimetres:1e3t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:1.0936t.earthRadius},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1.0936133},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=n,t.geometry=function(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return r(t).geometry;case"LineString":return s(t).geometry;case"Polygon":return i(t).geometry;case"MultiPoint":return o(t).geometry;case"MultiLineString":return (t).geometry;case"MultiPolygon":return u(t).geometry;default:throw new Error(e " is invalid")}},t.point=r,t.points=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return r(e,t)})),n)},t.polygon=i,t.polygons=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return i(e,t)})),n)},t.lineString=s,t.lineStrings=function(e,t,n){return void 0===n&&(n={}),a(e.map((function(e){return s(e,t)})),n)},t.featureCollection=a,t.multiLineString=,t.multiPoint=o,t.multiPolygon=u,t.geometryCollection=function(e,t,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(en)/n},t.radiansToLength=E,t.lengthToRadians=c,t.lengthToDegrees=function(e,t){return l(c(e,t))},t.bearingToAzimuth=function(e){var t=e60;return t<0&&(t =360),t},t.radiansToDegrees=l,t.degreesToRadians=function(e){return e60Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return E(c(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[n];if(!i)throw new Error("invalid original units");var s=t.areaFactors[r];if(!s)throw new Error("invalid final units");return e/i*s},t.isNumber=d,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!d(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},41941:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{o(r.next(e))}catch(e){s(e)}}function (e){try{o(r.throw(e))}catch(e){s(e)}}function o(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,)}o((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseDumper=void 0;const s=i(n(79896)),a=n(43106),=i(n(16928)),o=i(n(24434));class u extends o.default{constructor(e,t){if(super(),this._tables=e,this._options=t,this._isCancelled=!1,this._outputFileStream=s.default.createWriteStream(this._options.outputFile,{flags:"w"}),this._processedStream=null,this._state={},this._options.compress){const e=(0,a.createGzip)();e.pipe(this._outputFileStream),this._processedStream=e}else this._processedStream=this._outputFileStream;this._processedStream.once("error",(e=>{this._isCancelled=!0,this.emit("error",e)}))}run(){return r(this,void 0,void 0,(function*(){try{this.emit("start",this),yield this.dump()}catch(e){throw this.emit("error",e),e}finally{this._processedStream.end(),this.emit("end")}}))}get isCancelled(){return this._isCancelled}get outputFile(){return this._options.outputFile}outputFileExists(){return s.default.existsSync(this._options.outputFile)}cancel(){this._isCancelled=!0,this.emit("cancel"),this.emitUpdate({op:"cancelling"})}emitUpdate(e){this.emit("progress",Object.assign(Object.assign({},this._state),e))}writeString(e){if(!this._isCancelled){try{s.default.accessSync(this._options.outputFile)}catch(e){this.isCancelled=!0;const t=.default.basename(this._options.outputFile);this.emit("error",
The file ${t} is not accessible
)}this._processedStream.write(e)}}dump(){throw new Error('Exporter must implement the "dump" method')}}t.BaseDumper=u},25556:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{o(r.next(e))}catch(e){s(e)}}function (e){try{o(r.throw(e))}catch(e){s(e)}}function o(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,)}o((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MySqlClient=void 0,t.MySqlClient=class{constructor(e,t){this.connection=e,this.schema=t}getTableColumns({schema:e,table:t}){return n(this,void 0,void 0,(function*(){const{rows:n}=yield this.raw(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '${e}' AND TABLE_NAME='${t}'
),{rows:r}=yield this.raw(SHOW CREATE TABLE \
${e}`.`${t}`),i=r.map((e=>{if(!e["Create Table"])return!1;let t=0;return e["Create Table"].split("").reduce(((e,n)=>(")"===n&&t--,0!==t&&(e =n),"("===n&&t ,e)),"").replace(/\n/g,"").split(/,\s?(?![^(]*\))/).map((e=>{try{const t=e.trim().split(" "),n=t.slice(0,2);if("
"!==n[0].charAt(0))return!1;const r=t.slice(2).join(" ");let i=null;r.includes("DEFAULT")&&(i=r.match(/(?<=DEFAULT ).*?$/gs)[0].split(" COMMENThis is happen when i export database (all table) to another database
The text was updated successfully, but these errors were encountered: