<commit_before>var util = require("util"),
    hanaInterface = require('./hana-interface');

// see /etc/odbc.ini
var dsn = 'DSN=hana;'
        + 'UID=robertkrahn;'
        + 'PWD=<PASSWORD>';

var session = hanaInterface.getSession({dsn: dsn});

session.query('SFLIGHT', "select * from SAPLANE",
              function(err, results) {
                  console.log(JSON.stringify(results, null, 2));
                  console.log("done");
              });
<commit_msg>cleaning up the manual test script<commit_after>/*
 * run with "node test.js user password"
 */

var util = require("util"),
    hanaInterface = require('./hana-interface');

var user = process.argv[2],
    password = process.argv[3],
    // see /etc/odbc.ini
    dsn = util.format('DSN=hana;UID=%s;PWD=%s', user, password),
    session = hanaInterface.getSession({dsn: dsn});

session.query('SFLIGHT', "select * from SAPLANE",
              function(err, results) {
                  console.log(JSON.stringify(results, null, 2));
		  session.close(function() { console.log('done'); });
              });

{'fraction_non_alphanumeric': 0.17007434944237917, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 2.7395833333333335, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6750924', 'n_tokens_mistral': 350, 'n_tokens_neox': 340, 'n_words': 68}