Exemplo n.º 1
0
        private static int ParseTSV(string query)
        {
            StreamReader    sr           = new StreamReader(ClickhouseQueryExecutor.ExecuteFileQueryStream(query));
            List <string[]> parsedValues = new List <string[]>();
            string          readLine;

            while ((readLine = sr.ReadLine()) != null)
            {
                string[] parsedValue = readLine.Split('\t');
                parsedValues.Add(parsedValue);
            }
            return(parsedValues.Count);
        }
Exemplo n.º 2
0
 private static int ParseRowBinary(string query)
 {
     return(ClickhouseQueryExecutor.ReadAsStringArray(query).Count);
 }