Skip to content

Commit

Permalink
Agrego defaults para #24
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Nov 1, 2016
1 parent 6e63210 commit 2620245
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions lib/txt-to-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ var engines = {
'sqlite': {
types:mapTypes(['integer','integer','numeric','real','text']),
quote:quoteDouble,
dropTable:dropTableIfExists
dropTable:dropTableIfExists,
// http://www.sqlite.org/limits.html#max_compound_select
compactInsertLimit:500
}
};

Expand Down Expand Up @@ -696,7 +698,8 @@ txtToSql.defaultOpts = {
inputEncoding: false,
outputEncoding: false,
addDropTable: false,
ignoreNullLines: false
ignoreNullLines: false,
compactInsertLimit:0
};

module.exports = txtToSql;
7 changes: 5 additions & 2 deletions web/txt-to-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ var engines = {
'sqlite': {
types:mapTypes(['integer','integer','numeric','real','text']),
quote:quoteDouble,
dropTable:dropTableIfExists
dropTable:dropTableIfExists,
// http://www.sqlite.org/limits.html#max_compound_select
compactInsertLimit:500
}
};

Expand Down Expand Up @@ -696,7 +698,8 @@ txtToSql.defaultOpts = {
inputEncoding: false,
outputEncoding: false,
addDropTable: false,
ignoreNullLines: false
ignoreNullLines: false,
compactInsertLimit:0
};

module.exports = txtToSql;

0 comments on commit 2620245

Please sign in to comment.