Пример #1
0
        //--- internal functions

        //--- functions to execute queries

        // Get a single unnamed scalar value
        int GetIntValue(string sql)
        {
            _database.OpenStatement();
            _database.ExecuteQuery(sql);
            Logger.Assert(_database.HasData);
            int value;

            _database.GetData(out value);
            _database.CloseStatement();
            return(value);
        }