test-postgresql-local.nut 328 B

12345678910111213
  1. //local db = PostgreSQL("host=localhost dbname=mingo user=mingo port=7432");
  2. local db = PostgreSQL("host=/tmp dbname=mingo user=mingo port=7432");
  3. for(local i=0; i < 10000; ++i)
  4. {
  5. local qry = db.exec_query("select t from test where i=1;");
  6. qry.next_row();
  7. //print(qry.col_value(0));
  8. qry.close();
  9. }
  10. db.close();