Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.SQLiteEventStore.ExecuteQuery C# (CSharp) Method

ExecuteQuery() private method

private ExecuteQuery ( string query ) : SQLitePCL.sqlite3_stmt
query string
return SQLitePCL.sqlite3_stmt
    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;
    }