/*
this.DB
this.params = {
driverPath,
driver
}

var test = {a: 1, b: { "b1": 2 }}
 /*

var edb = require('ecdb'); // var edb = require('./index.js');
var db = new edb();
db.connect();
db.listData('users', 'where authtime > "2012-10-10"', function(e, d) {console.log(d);});
db.listTable(function(e, d) {console.log(d);});
db.putData('tmp', 5, {name: 'String', birth: 'Date', age: 1}, function(e, d) {console.log(d);});
db.postTable('testuser', {name: 'String', birth: 'Date', age: 1}, function(e, d) {console.log(d);});
db.postData('user', {name: 'A', birth: '1982-04-01', age: 2}, function(e, d) {console.log(d);});
db.postData('testuser', {name: 'B', birth: '1988-09-18', age: 3}, function(e, d) {console.log(d);});
db.postData('user', {name: 'B', birth: '1995-08-23', age: 4}, function(e, d) {console.log(d);});
db.listData('user', "birth < '1990-01-01' and birth > '1984-01-01'", function(e, d) {console.log(d);});
db.postData('user', [{name: 'D', birth: '1982-05-01'}], function(e, d) {console.log(d);});
db.postData('user', [{name: 'D', birth: '1982-05-01'}, {name: 'E', birth: '1982-06-01'}, {name: 'F', birth: '1982-07-01'}], function(e, d) {console.log(d);});
db.sql("select * from user where birth > '1982-05-01'", function(e, d) {console.log(d);});
db.sql("select * from user inner join info on user.x = info.x", function(e, d) {console.log(d);});

db.dataFind(
[{name: 'A', birth: '1982-04-01', age: 10},{name: 'B', birth: '1983-04-01', age: 5},{name: 'C', birth: '1984-04-01', age: 20}],
"select * from table where birth > '1983-01-01'",
function(e, d) {console.log(d);}
);

db.putData('tmp2', 5, {name: 'String', birth: 'Date', age: 1}, function(e, d) {console.log(d);});
db.sql("update Yo set a = 1, b = 'b', c = '1999-01-01'");
db.sql("delete from user where _id > 3");
function(data) {
	var schema = {};
	if(!data || typeof data != 'object') { data = {}; }
	else if(util.isArray(data)) { return getValueSchema(data[0]); }

	for(var key in data) {
		schema[key] = valueType(data[key]);
	}

	return schema;
}