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);
     }
 }
Beispiel #2
0
 public string GetString(int i)
 {
     return(__reader.GetString(i));
 }
Beispiel #3
0
 public string GetString(int i)
 {
     return(sqliteDataReader.GetString(i));
 }