UNPKG

ifx_db

Version:

IBM Informix bindings for node

19 lines (16 loc) 478 B
var common = require("./common") , odbc = require("../") , db = new odbc.Database() , assert = require("assert") ; db.openSync(common.connectionString); common.dropTables(db, function () { common.createTables(db, function () { db.describe({ database : common.databaseName }, function (err, data) { db.closeSync(); assert.ok(data.length, "No records returned when attempting to describe the database"); }); }); });