/* This script shows an example find() operation using a table name and primary key, and working with promises. For a similar example using callbacks rather than promises, see insert.js */ "use strict"; var jones = require("database-jones"); /* Uncomment this to enable internal debugging output */ //require("unified_debug").level_debug(); /* new ConnectionProperties(adapter, deployment) The first argument names a database backend, e.g. "ndb", "mysql", etc. The second argument names a "deployment" defined in a jones_deployments.js file. (A default file can be found two directories up from here). jones_deployments.js is the preferred place to customize the host, username, password, and other parameters of the database connection. */ var connectionProperties = new jones.ConnectionProperties("mysql", "test"); /* node find.js table_name primary_key_value argv[0] argv[1] argv[2] argv[3] */ if (process.argv.length !== 4) { console.log("Usage: node find