{"repo":"leonardoce/nim-clickhouse","free":true,"listed":false,"github":"https://github.com/leonardoce/nim-clickhouse","clone":"git clone https://github.com/leonardoce/nim-clickhouse.git","description":"Nim Clickhouse Interface","language":"Nim","stars":21,"topics":["nim-lang","nim","clickhouse"],"license":null,"category":"databases-storage","readme_excerpt":"Nim Clickhouse Interface Introduction This package let's you use the Clickhouse analytical database from the Nim language, using an interface similar to the ones provided for SQLite and for PostgreSQL. It contains only pure Nim code and doesn't require any external library. Internally, it uses the HTTP interface of Clickhouse, since the TCP transport is not meant to be used by client applications but only for cross-engine communications, as you can see in this bug report. Installation instructions You can find this package inside the Nim Package Directory. If you are using Nimble you can simply add the following line inside your dependencies: You can also set a version constraint on this package to select a certain release. Usage You can find other examples in the unit tests of this package. Tests If you want to run to unit tests included with this package, you will need to have an available ClickHouse instance with a test table with the following structure: If you are using Docker, you can create a new ClickHouse instance with the following command: You can create the required table starting a clickhouse client like this: You can then execute the unit tests using nimble: If you want you can customize the host that will be used as ClickHouse server during the unit tests using the TEST DB HOSTNAME environment variable, and this will be needed if you are using Docker Machine.","default_branch":null,"files":null,"tree":[],"storefront":"/r/leonardoce","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leonardoce/nim-clickhouse/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."}