<commit_before>
/**
 * Module dependencies
 */

var
  pg = require('pg')
, should = require('should')
, Transaction = require('../');
;

var
  connectionStr = 'tcp://localhost:5432'
, client = null
;

describe('transaction', function(){
  beforeEach(function(){
    this.client = new pg.Client(connectionStr);
    this.client.connect();
    this.client.query("CREATE TEMP TABLE beatles(name varchar(10), height integer, birthday timestamptz)");
  });
<commit_msg>pass in PostgreSQL connection string via environment variable: PG_CON<commit_after>
/**
 * Module dependencies
 */

var
  pg = require('pg')
, should = require('should')
, Transaction = require('../');
;

var
  connectionStr = process.env['PG_CON'] || '';
;

describe('transaction', function(){
  beforeEach(function(){
    this.client = new pg.Client(connectionStr);
    this.client.connect();
    this.client.query("CREATE TEMP TABLE beatles(name varchar(10), height integer, birthday timestamptz)");
  });

{'fraction_non_alphanumeric': 0.16563786008230452, 'fraction_numerical': 0.00823045267489712, 'mean_word_length': 4.591954022988506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '710265', 'n_tokens_mistral': 297, 'n_tokens_neox': 290, 'n_words': 68}