コード例 #1
0
    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);
    }
コード例 #2
0
    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);
    }