UNPKG

ifx_db

Version:

IBM Informix bindings for node

35 lines (25 loc) 837 B
var common = require("./common") , odbc = require("../") , db = new odbc.Database() , assert = require("assert") ; db.openSync(common.connectionString); console.log("connected"); common.dropTables(db, function (err) { if (err) console.log(err.message); console.log("tables dropped"); common.createTables(db, function (err) { if (err) console.log(err.message); console.log("tables created"); db.describe({ database : common.databaseName, table : common.tableName, column : 'COLDATETIME' }, function (err, data) { if (err) console.log(err.message); console.log(data); db.closeSync(); assert.ok(data.length, "No records returned when attempting to describe the column COLDATETIME"); }); }); });