8000 GitHub - breadchris/scratchdata: Scratch is an open-source alternative to BigQuery, Redshift, and Snowflake. Runs on Clickhouse.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Scratch is an open-source alternative to BigQuery, Redshift, and Snowflake. Runs on Clickhouse.

License

Notifications You must be signed in to change notification settings

breadchris/scratchdata

 
 

Repository files navigation

Scratch Data

Scratch Data is a wrapper that lets you stream data into and out of your analytics database. It takes arbitrary JSON as input and lets you perform analytical queries.

Quickstart

1. Run the server

Clone the repo:

$ git clone git@github.com:scratchdata/scratchdata.git
$ cd scratchdata

Start the service:

$ go run . 

With no configuration, this will automatically set up a local DuckDB database ready for reading and writing.

Run without default config

Create a config.yaml file with all of your settings and run:

$ go run . config.yaml

2. Insert JSON data

$ curl -X POST "http://localhost:8080/api/data/insert/events?api_key=local" \
    --json '{"user": "alice", "event": "click"}'

The "events" table and columns are automatically created.

3. Query

curl -G "http://localhost:8080/api/data/query" \
     --data-urlencode="api_key=local" \
     --data-urlencode="query=select * from events" 

Next Steps

To see the full list of options, look at: https://docs.scratchdata.com

About

Scratch is an open-source alternative to BigQuery, Redshift, and Snowflake. Runs on Clickhouse.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 83.5%
  • HTML 15.6%
  • Other 0.9%
0