Exemple #1
0
            public override void Evaluate(dCallback cb)
            {
                int r;

                if (columnCount == -1)
                {
                    columnCount = sqlite3_column_count(stmt);
                }
                while (SQLite3.SQLITE_ROW == (r = sqlite3_step(this.stmt)))
                {
                    object[] o = new string[columnCount];
                    for (int i = 0; i < columnCount; i++)
                    {
                        o[i] = ReadStringFromLPWSTR(sqlite3_column_text16(stmt, i));
                    }
                    cb(o);
                }
                if (r != SQLite3.SQLITE_DONE)
                {
                    throw new SQLite3Exception(ReadStringFromLPWSTR(sqlite3_errmsg16(db.dbPtr)));
                }
                Reset();
            }
Exemple #2
0
 /// <summary>
 /// ステートメントを評価する
 /// </summary>
 /// <param name="cb"></param>
 public abstract void Evaluate(dCallback cb);