{"size": 519, "ext": "js", "max_stars_repo_path": "node_modules/alasql/test/test106.js", "max_stars_repo_name": "agershun/alamdx", "max_stars_repo_stars_event_min_datetime": "2015-01-18T13:06:56.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-11T10:16:52.000Z", "max_issues_repo_path": "node_modules/alasql/test/test106.js", "max_issues_repo_name": "agershun/alamdx", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/alasql/test/test106.js", "max_forks_repo_name": "agershun/alamdx", "max_forks_repo_forks_event_min_datetime": "2016-02-20T20:57:27.000Z", "max_forks_repo_forks_event_max_datetime": "2018-12-04T10:31:00.000Z"}
{"max_stars_count": 17, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 17.3, "max_line_length": 56, "alphanum_fraction": 0.5626204239}
﻿//
// tselect01.js
// Test for select
//

if(typeof exports === 'object') {
	var assert = require("assert");
	var alasql = require('../alasql.js');
};


describe('Callback', function(){
	it('exec(sql, callback)', function(done) {

		alasql('drop table if exists test');
		alasql.exec('CREATE TABLE test (a INT, b INT)');

		alasql.exec('INSERT INTO test VALUES (1,1)');

		alasql.exec('SELECT * FROM test', [], function(res) {
			assert.equal(1, res[0].a);
			done();		
		});

	});

});


