dbgate-plugin-sqlite
Advanced tools
Comparing version 5.5.7-alpha.16 to 5.5.7-alpha.25
@@ -1,1 +0,1 @@ | ||
var plugin;(()=>{var e={994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oracleSplitterOptions=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,allowCustomSqlTerminator:!1,allowGoDelimiter:!1,allowSlashDelimiter:!1,allowDollarDollarString:!1,noSplit:!1,doubleDashComments:!0,multilineComments:!0,javaScriptComments:!1,returnRichInfo:!1,splitByLines:!1,preventSingleLineSplit:!1,adaptiveGoSplit:!1,ignoreComments:!1,copyFromStdin:!1,queryParameterStyle:null},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}),t.oracleSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowCustomSqlTerminator:!0,allowSlashDelimiter:!0,stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"'",'"':'"'}})},56:e=>{const{SqlDumper:t,arrayToHexString:i}=window.DBGATE_PACKAGES["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:s}=window.DBGATE_PACKAGES["dbgate-tools"],n=i(56),{sqliteSplitterOptions:r,noSplitSplitterOptions:l}=i(994);function o(e){if(!e)return e;const t=e.match(/[\/]([^\/]+)$/);return t?t[1]:e}const a={...s,dumperClass:n,dialect:{limitSelect:!0,rangeSelect:!0,offsetFetchRangeSyntax:!1,explicitDropConstraint:!0,stringEscapeChar:"'",fallbackDataType:"nvarchar",allowMultipleValuesInsert:!0,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,supportsTransactions:!0,showConnectionField:(e,t)=>"databaseFile"==e||"isReadOnly"==e,showConnectionTab:e=>!1,beforeConnectionSave:e=>({...e,singleDatabase:!0,defaultDatabase:o(e.databaseFile)}),getQuerySplitterOptions:e=>"editor"==e?{...r,ignoreComments:!0,preventSingleLineSplit:!0}:"stream"==e?l:r,isElectronOnly:!0,predefinedDataTypes:["integer","real","text","blob"]};e.exports=a}},t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s](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 s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s={};(()=>{"use strict";i.r(s),i.d(s,{default:()=>t});var e=i(831);const t={packageName:"dbgate-plugin-sqlite",drivers:[i.n(e)()]}})(),plugin=s})(); | ||
var plugin;(()=>{var e={994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oracleSplitterOptions=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,allowCustomSqlTerminator:!1,allowGoDelimiter:!1,allowSlashDelimiter:!1,allowDollarDollarString:!1,noSplit:!1,doubleDashComments:!0,multilineComments:!0,javaScriptComments:!1,returnRichInfo:!1,splitByLines:!1,preventSingleLineSplit:!1,adaptiveGoSplit:!1,ignoreComments:!1,copyFromStdin:!1,queryParameterStyle:null},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}),t.oracleSplitterOptions=Object.assign(Object.assign({},t.defaultSplitterOptions),{allowCustomSqlTerminator:!0,allowSlashDelimiter:!0,stringsBegins:["'",'"'],stringsEnds:{"'":"'",'"':'"'},stringEscapes:{"'":"'",'"':'"'}})},56:e=>{const{SqlDumper:t,arrayToHexString:i}=window.DBGATE_PACKAGES["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:s}=window.DBGATE_PACKAGES["dbgate-tools"],n=i(56),{sqliteSplitterOptions:r,noSplitSplitterOptions:l}=i(994);function o(e){if(!e)return e;const t=e.match(/[\/]([^\/]+)$/);return t?t[1]:e}const a={...s,dumperClass:n,dialect:{limitSelect:!0,rangeSelect:!0,offsetFetchRangeSyntax:!1,explicitDropConstraint:!0,stringEscapeChar:"'",fallbackDataType:"nvarchar",allowMultipleValuesInsert:!0,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,filteredIndexes:!0},engine:"sqlite@dbgate-plugin-sqlite",title:"SQLite",readOnlySessions:!0,supportsTransactions:!0,showConnectionField:(e,t)=>"databaseFile"==e||"isReadOnly"==e,showConnectionTab:e=>!1,beforeConnectionSave:e=>({...e,singleDatabase:!0,defaultDatabase:o(e.databaseFile)}),getQuerySplitterOptions:e=>"editor"==e?{...r,ignoreComments:!0,preventSingleLineSplit:!0}:"stream"==e?l:r,isElectronOnly:!0,predefinedDataTypes:["integer","real","text","blob"]};e.exports=a}},t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s](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 s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s={};(()=>{"use strict";i.r(s),i.d(s,{default:()=>t});var e=i(831);const t={packageName:"dbgate-plugin-sqlite",drivers:[i.n(e)()]}})(),plugin=s})(); |
{ | ||
"name": "dbgate-plugin-sqlite", | ||
"main": "dist/backend.js", | ||
"version": "5.5.7-alpha.16", | ||
"version": "5.5.7-alpha.25", | ||
"homepage": "https://dbgate.org", | ||
@@ -33,3 +33,3 @@ "description": "SQLite connect plugin for DbGate", | ||
"devDependencies": { | ||
"dbgate-tools": "^5.5.7-alpha.16", | ||
"dbgate-tools": "^5.5.7-alpha.25", | ||
"dbgate-plugin-tools": "^1.0.4", | ||
@@ -36,0 +36,0 @@ "dbgate-query-splitter": "^4.11.2", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98581