Exemplo n.º 1
0
        public void Close()
        {
            if (Current != null)
            {
                _clickHouseConnection.Formatter.ReadResponse();
            }

            if ((_behavior & CommandBehavior.CloseConnection) != 0)
            {
                _clickHouseConnection.Close();
            }

            _clickHouseConnection = null;
        }
 public ClickHouseCommand(ClickHouseConnection clickHouseConnection, string text) : this(clickHouseConnection)
 {
     CommandText = text;
 }
 public ClickHouseCommand(ClickHouseConnection clickHouseConnection)
 {
     Connection = clickHouseConnection;
 }
Exemplo n.º 4
0
 internal ClickHouseDataReader(ClickHouseConnection clickHouseConnection, CommandBehavior behavior)
 {
     _clickHouseConnection = clickHouseConnection;
     _behavior             = behavior;
     NextResult();
 }