public override ChunkData Pull(ChunkDescriptor Chunk)
 {
     using (Mono.Data.Sqlite.SqliteCommand Comm = new Mono.Data.Sqlite.SqliteCommand("SELECT PATH FROM CHUNKS WHERE ID = @p0", Base)) {
         Comm.Parameters.AddWithValue("p0", Chunk.Hash);
         Mono.Data.Sqlite.SqliteDataReader DR = Comm.ExecuteReader();
         if (DR.Read())
         {
             return(new File(Chunk, this, DR.GetString(0)));
         }
         return(null);
     }
 }
Пример #2
0
 public string GetString(int i)
 {
     return(__reader.GetString(i));
 }
Пример #3
0
 public string GetString(int i)
 {
     return(sqliteDataReader.GetString(i));
 }