An open API service indexing awesome lists of open source software.

https://github.com/mfussenegger/cr8ingest

A command line tool to ingest data into CrateDB.
https://github.com/mfussenegger/cr8ingest

Last synced: 6 months ago
JSON representation

A command line tool to ingest data into CrateDB.

Awesome Lists containing this project

README

          

=========
cr8ingest
=========

A command line tool to ingest JSON records into `CrateDB `_.
For a more polished tool see `cr8 `_.

Example
=======

Create a table

::

>>> crash --hosts localhost:4200 -c "CREATE TABLE t (id int, name string)"
CONNECT OK
CREATE OK, 1 row affected (... sec)

Insert some JSON records::

>>> echo '{"id": 1, "name": "Trillian"}' | cr8ingest --table t --db-uri "host=localhost user=crate dbname=doc port=5432"
Columns: [("id","integer"),("name","text")]
Rate: Nothing
Concurrency: 15
1 requests [op/s: ... avg duration: ... (ms)]

Installation
============

Clone the repo and run::

$> stack install

`stack `_ must be installed.

Development
===========

::

$> stack test