{"repo":"patrick-zippenfenig/ClickHouseNIO","free":true,"listed":false,"github":"https://github.com/patrick-zippenfenig/ClickHouseNIO","clone":"git clone https://github.com/patrick-zippenfenig/ClickHouseNIO.git","description":"ClickHouse client in pure Swift","language":"Swift","stars":28,"topics":["swift","clickhouse"],"license":"MIT","category":"data-pipelines","readme_excerpt":"ClickHouseNIO High performance Swift ClickHouse client based on SwiftNIO 2. It is inspired by the ClickHouse source code (C++), but written in pure Swift. Features: - Asynchronous Swift NIO implementation. Perfect for concurrent APIs. - Native Swift data types support. Per table column a simple [Float] , [Int] or [String] array can be used. Maps are also supported, but only [String : String] (for now). - Simple query() , command() and insert() operations This client provides raw query capabilities. Connection pooling or relational abstraction may be implemented on top of this library. For connection pooling and integration into Vapor use, ClickHouseVapor. Installation: 1. Add ClickHouseNIO as a dependency to your Package.swift 2. Build your project: Usage 1. Connect to a ClickHouseServer. The client requires a eventLoop which is usually provided by frameworks which use SwiftNIO. We also use wait() for simplicity, but it is discouraged for production code. 2. Send commands without data returned. In this example to drop a table. Some DROP or CREATE commands actually do return data. In this case use query() instead of command() . 3. Create a table 4. Insert data. ClickHouseColumn represents a column with an array. String, Float, Double, UUID and Integers are supported. 5. Query data and cast is to the exptected array Secure TLS connections For TLS encrypted connections to the ClickHouse server, a tlsConfiguration attribute can be set in the configuration. Usually port 9440 is us","default_branch":null,"files":null,"tree":[],"storefront":"/r/patrick-zippenfenig","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/patrick-zippenfenig/ClickHouseNIO/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}