public DateTime GetDateTime(string field)
    {
        int i = GetFieldIndex(field);

        if (Sqlite3.SQLITE_INTEGER == columnTypes[i])
        {
            return(DateTime.FromBinary(Sqlite3.sqlite3_column_int64(vm, i)));
        }

        throw new Exception("SQLite wrong field type (expecting Integer) : " + field);
    }
    public long GetLong(string field)
    {
        int i = GetFieldIndex(field);

        if (Sqlite3.SQLITE_INTEGER == columnTypes[i])
        {
            return(Sqlite3.sqlite3_column_int64(vm, i));
        }

        throw new Exception("SQLite wrong field type (expecting Integer) : " + field);
    }