mfussenegger / cr8ingest

A command line tool to ingest data into CrateDB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)]
<BLANKLINE>

Installation

Clone the repo and run:

$> stack install

stack must be installed.

Development

$> stack test

About

A command line tool to ingest data into CrateDB.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 89.7%Language:Python 10.3%