demo-postgresql-improved-type-detection #1

Merged
asadbek064 merged 2 commits from demo-postgresql-improved-type-detection into main 2024-12-03 20:27:06 +00:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit e2fb27aa4f - Show all commits

2
.gitignore vendored

@ -4,4 +4,4 @@ node_modules/
.log
:.prettierrc
SheetJSPGExport.xlsx
pres.numbers
pres.numbers

@ -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();
}
})();
})();