dbgate-plugin-sqlite 5.2.7 → 5.2.8
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/backend.js +2 -9
- package/dist/backend.js.LICENSE.txt +8 -0
- package/dist/frontend.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Lodash <https://lodash.com/>
|
|
4
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
|
+
* Released under MIT license <https://lodash.com/license>
|
|
6
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
+
*/
|
package/dist/frontend.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var plugin
|
|
1
|
+
var plugin;(()=>{var e={994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redisSplitterOptions=t.noSplitSplitterOptions=t.mongoSplitterOptions=t.sqliteSplitterOptions=t.postgreSplitterOptions=t.mssqlSplitterOptions=t.mysqlSplitterOptions=t.defaultSplitterOptions=void 0,t.defaultSplitterOptions={stringsBegins:["'"],stringsEnds:{"'":"'"},stringEscapes:{"'":"'"},allowSemicolon:!0,allowCustomDelimiter:!1,allowGoDelimiter:!1,allowDollarDollarString:!1,noSplit:!1,doubleDashComments:!0,multilineComments:!0,javaScriptComments:!1,returnRichInfo:!1,splitByLines:!1,preventSingleLineSplit:!1,adaptiveGoSplit:!1,ignoreComments:!1},t.mysqlSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowCustomDelimiter:!0,stringsBegins:["'","`"],stringsEnds:{"'":"'","`":"`"},stringEscapes:{"'":"\\","`":"`"}}),t.mssqlSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowSemicolon:!1,allowGoDelimiter:!0,stringsBegins:["'","["],stringsEnds:{"'":"'","[":"]"},stringEscapes:{"'":"'"}}),t.postgreSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowDollarDollarString:!0,stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"'",'"':'"'}}),t.sqliteSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"'",'"':'"'}}),t.mongoSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"\\",'"':"\\"}}),t.noSplitSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{noSplit:!0}),t.redisSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{splitByLines:!0})},56:e=>{const{SqlDumper:t,arrayToHexString:i}=window.DBGATE_TOOLS;e.exports=class extends t{renameColumn(e,t){this.putCmd("^alter ^table %f ^rename ^column %i ^to %i",e,e.columnName,t)}renameTable(e,t){this.putCmd("^alter ^table %f ^rename ^to %i",e,t)}putByteArrayValue(e){this.putRaw(`x'${i(e)}'`)}truncateTable(e){this.putCmd("^delete ^from %f",e)}selectScopeIdentity(){this.put("^select last_insert_rowid()")}columnDefinition(e,t){e.dataType&&e.dataType.toLowerCase().includes("int")&&e.notNull&&e.autoIncrement?this.put("^integer ^primary ^key ^autoincrement"):super.columnDefinition(e,t)}createTablePrimaryKeyCore(e){const t=e.columns.find((e=>e.autoIncrement));t&&t.dataType&&t.dataType.toLowerCase().includes("int")&&t.notNull||super.createTablePrimaryKeyCore(e)}}},831:(e,t,i)=>{const{driverBase:n}=window.DBGATE_TOOLS,s=i(56),{sqliteSplitterOptions:r,noSplitSplitterOptions:o}=i(994);function l(e){if(!e)return e;const t=e.match(/[\/]([^\/]+)$/);return t?t[1]:e}const a={...n,dumperClass:s,dialect:{limitSelect:!0,rangeSelect:!0,offsetFetchRangeSyntax:!1,explicitDropConstraint:!0,stringEscapeChar:"'",fallbackDataType:"nvarchar",dropColumnDependencies:["indexes","primaryKey","uniques"],quoteIdentifier:e=>`[${e}]`,anonymousPrimaryKey:!0,requireStandaloneSelectForScopeIdentity:!0,createColumn:!0,dropColumn:!0,createIndex:!0,dropIndex:!0,createForeignKey:!1,dropForeignKey:!1,createPrimaryKey:!1,dropPrimaryKey:!1,dropReferencesWhenDropTable:!1},engine:"sqlite@dbgate-plugin-sqlite",title:"SQLite",readOnlySessions:!0,showConnectionField:(e,t)=>"databaseFile"==e||"isReadOnly"==e,showConnectionTab:e=>!1,beforeConnectionSave:e=>({...e,singleDatabase:!0,defaultDatabase:l(e.databaseFile)}),getQuerySplitterOptions:e=>"editor"==e?{...r,ignoreComments:!0,preventSingleLineSplit:!0}:"stream"==e?o:r,isElectronOnly:!0,predefinedDataTypes:["integer","real","text","blob"]};e.exports=a}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";i.r(n),i.d(n,{default:()=>t});var e=i(831);const t={packageName:"dbgate-plugin-sqlite",drivers:[i.n(e)()]}})(),plugin=n})();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbgate-plugin-sqlite",
|
|
3
3
|
"main": "dist/backend.js",
|
|
4
|
-
"version": "5.2.
|
|
4
|
+
"version": "5.2.8",
|
|
5
5
|
"homepage": "https://dbgate.org",
|
|
6
6
|
"description": "SQLite connect plugin for DbGate",
|
|
7
7
|
"repository": {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"prepublishOnly": "yarn build"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"dbgate-tools": "^5.2.
|
|
33
|
+
"dbgate-tools": "^5.2.8",
|
|
34
34
|
"dbgate-plugin-tools": "^1.0.4",
|
|
35
35
|
"dbgate-query-splitter": "^4.9.3",
|
|
36
36
|
"byline": "^5.0.0",
|
|
37
|
-
"webpack": "^
|
|
38
|
-
"webpack-cli": "^
|
|
37
|
+
"webpack": "^5.91.0",
|
|
38
|
+
"webpack-cli": "^5.1.4"
|
|
39
39
|
}
|
|
40
40
|
}
|