private Sqlite3Statement ExecuteQuery(string query, params object[] parameters)
{
Sqlite3Statement statement;
Result r = (Result)Enum.Parse(typeof(Result), Sqlite3.sqlite3_prepare_v2(Handle, query, out statement).ToString());
if (r != Result.OK && r != Result.Done && r != Result.Row)
{
throw Sqlite3Exception.New(r, string.Format("Error executing statement {0}", r));
}
BindData(statement, parameters);
return statement;
}