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.
- Host: GitHub
- URL: https://github.com/mfussenegger/cr8ingest
- Owner: mfussenegger
- License: bsd-3-clause
- Created: 2018-11-16T22:07:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-04T21:15:27.000Z (over 4 years ago)
- Last Synced: 2024-12-24T23:09:32.460Z (10 months ago)
- Language: Haskell
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: ChangeLog.rst
- License: LICENSE
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