Skip to content

Commit

Permalink
web: Agrego compactInsertLimit. Close #24
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Nov 7, 2016
1 parent 7c2bdb5 commit 97beaa8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/txt-to-sql.jade
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ html(lang=lang)
outputEncoding:'Formato de salida',
ignoreNullLines:'Ignorar líneas nulas',
addDropTable:'Agregar DROP TABLE',
compactInsertLimit:'Límite INSERT compacto',
},
cols:{
name:'Nombre',
type:'Tipo',
pk:'En PK',
pk:'PK',
nuls:'NULLs',
len:'Longitud',
scale:'Escala',
Expand All @@ -114,11 +115,12 @@ html(lang=lang)
outputEncoding:'Output encoding',
ignoreNullLines:'Ignore NULL lines',
addDropTable:'Add DROP TABLE',
compactInsertLimit:'Compact INSERT limit',
},
cols:{
name:'Name',
type:'Type',
pk:'In PK',
pk:'PK',
nuls:'NULLs',
len:'Length',
scale:'Scale',
Expand Down Expand Up @@ -205,6 +207,7 @@ html(lang=lang)
userOptions.outputEncoding = getID('outputEncoding').value;
userOptions.ignoreNullLines = getID('ignoreNullLines').checked;
userOptions.addDropTable = getID('addDropTable').checked;
userOptions.compactInsertLimit = parseInt(getID('compactInsertLimit').value);

preparedColumns.forEach(function(column, index) {
var colName = getID('col_name_'+index);
Expand Down Expand Up @@ -286,6 +289,7 @@ html(lang=lang)
createOption(messages.opts.outputEncoding, 'outputEncoding', 'text', prepared.opts.outputEncoding, 7),
createOption(messages.opts.ignoreNullLines, 'ignoreNullLines', 'checkbox', prepared.opts.ignoreNullLines, 1),
createOption(messages.opts.addDropTable, 'addDropTable', 'checkbox', prepared.opts.addDropTable, 1),
createOption(messages.opts.compactInsertLimit, 'compactInsertLimit', 'text', prepared.opts.compactInsertLimit, 1),
]).create();
var fields = prepared.columns.map(function(column, index) {
var ipk = column.inPrimaryKey!==null && column.inPrimaryKey;
Expand Down
8 changes: 6 additions & 2 deletions web/txt-to-sql.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
outputEncoding:'Formato de salida',
ignoreNullLines:'Ignorar líneas nulas',
addDropTable:'Agregar DROP TABLE',
compactInsertLimit:'Límite INSERT compacto',
},
cols:{
name:'Nombre',
type:'Tipo',
pk:'En PK',
pk:'PK',
nuls:'NULLs',
len:'Longitud',
scale:'Escala',
Expand All @@ -59,11 +60,12 @@
outputEncoding:'Output encoding',
ignoreNullLines:'Ignore NULL lines',
addDropTable:'Add DROP TABLE',
compactInsertLimit:'Compact INSERT limit',
},
cols:{
name:'Name',
type:'Type',
pk:'In PK',
pk:'PK',
nuls:'NULLs',
len:'Length',
scale:'Scale',
Expand Down Expand Up @@ -150,6 +152,7 @@
userOptions.outputEncoding = getID('outputEncoding').value;
userOptions.ignoreNullLines = getID('ignoreNullLines').checked;
userOptions.addDropTable = getID('addDropTable').checked;
userOptions.compactInsertLimit = parseInt(getID('compactInsertLimit').value);

preparedColumns.forEach(function(column, index) {
var colName = getID('col_name_'+index);
Expand Down Expand Up @@ -231,6 +234,7 @@
createOption(messages.opts.outputEncoding, 'outputEncoding', 'text', prepared.opts.outputEncoding, 7),
createOption(messages.opts.ignoreNullLines, 'ignoreNullLines', 'checkbox', prepared.opts.ignoreNullLines, 1),
createOption(messages.opts.addDropTable, 'addDropTable', 'checkbox', prepared.opts.addDropTable, 1),
createOption(messages.opts.compactInsertLimit, 'compactInsertLimit', 'text', prepared.opts.compactInsertLimit, 1),
]).create();
var fields = prepared.columns.map(function(column, index) {
var ipk = column.inPrimaryKey!==null && column.inPrimaryKey;
Expand Down

0 comments on commit 97beaa8

Please sign in to comment.