let mimeType = `application/octet-stream`
let filename = `dc-download`

if (libref) filename = `${libref}.ddl`

fs.writeFile(_SASJS_WEBOUT_HEADERS, `Content-type: ${mimeType} \n Content-Disposition: attachment;filename=\"${filename}\"`, function (err) {
  if (err) throw err;
})

_webout = `/* DDL generated by sassrv on  29SEP2022:11:59:44 */
CREATE SCHEMA DC996664;
/* Postgres Flavour DDL for DC996664.MPE_X_TEST */
CREATE TABLE DC996664.MPE_X_TEST (
    "primary_key_field" DOUBLE PRECISION NOT NULL
   ,"some_char" VARCHAR(32767)
   ,"some_dropdown" VARCHAR(128)
   ,"some_num" DOUBLE PRECISION
   ,"some_date" DOUBLE PRECISION
   ,"some_datetime" TIMESTAMP
   ,"some_time" DOUBLE PRECISION
   ,"some_shortnum" DOUBLE PRECISION
   ,"some_bestnum" DOUBLE PRECISION
);
CREATE UNIQUE INDEX "primary_key_field" ON DC996664.MPE_X_TEST(
  "primary_key_field"
);
`