demo-postgresql-improved-type-detection #1
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,4 +4,4 @@ node_modules/
|
||||
.log
|
||||
:.prettierrc
|
||||
SheetJSPGExport.xlsx
|
||||
pres.numbers
|
||||
pres.numbers
|
||||
|
14
SheetJSPG.js
14
SheetJSPG.js
@ -1,12 +1,12 @@
|
||||
const pg = require("pg"), format = require("pg-format");
|
||||
const XLSX = require("xlsx");
|
||||
const opts = {
|
||||
database:"SheetJSPG",
|
||||
host: "127.0.0.1", // localhost
|
||||
port: 5432,
|
||||
user: "postgres",
|
||||
password: "7509"
|
||||
};
|
||||
database:"SheetJSPG",
|
||||
host: "127.0.0.1", // localhost
|
||||
port: 5432,
|
||||
user: "postgres",
|
||||
password: "7509"
|
||||
};
|
||||
|
||||
function deduceType(cells) {
|
||||
if (!cells || cells.length === 0) return 'text';
|
||||
@ -170,4 +170,4 @@ try {
|
||||
/* disconnect */
|
||||
await client.end();
|
||||
}
|
||||
})();
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user