Weny Xu a52aedec5b feat: implement the drop database parser (#3521)
* refactor: refactor drop table parser

* feat: implement drop database parser

* fix: canonicalize name of create database

* test: update sqlness result

* Update src/operator/src/statement.rs

Co-authored-by: Ruihang Xia <waynestxia@gmail.com>

---------

Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
2024-03-15 06:15:18 +00:00
2023-08-10 08:08:37 +00:00
2023-06-25 11:05:46 +08:00
2023-07-03 10:08:53 +00:00
2023-11-09 10:38:12 +00:00
2024-03-15 04:22:35 +00:00
2023-03-28 19:14:29 +08:00

GreptimeDB Logo

codecov GitHub Actions License


Twitter LinkedIn Slack

What is GreptimeDB

GreptimeDB is an open-source time-series database focusing on efficiency, scalability, and analytical capabilities. It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage.

Our core developers have been building time-series data platforms for years. Based on their best-practices, GreptimeDB is born to give you:

  • Compatible with InfluxDB, Prometheus and more protocols: Widely adopted database protocols and APIs, including MySQL, PostgreSQL, and Prometheus Remote Storage, etc. Read more.
  • Easy horizontal scaling: Seamless scalability from a standalone binary at edge to a robust, highly available distributed cluster in cloud, with a transparent experience for both developers and administrators.
  • Analyzing time-series data: Native SQL and PromQL for queries, and Python scripting to facilitate complex analytical tasks.
  • Cloud-native distributed database: Fully open-source distributed cluster architecture that harnesses the power of cloud-native elastic computing resources.
  • Performance and Cost-effective: Flexible indexing capabilities and distributed, parallel-processing query engine, tackling high cardinality issues down. Optimized columnar layout for handling time-series data; compacted, compressed, and stored on various storage backends, particularly cloud object storage with 50x cost efficiency.

Quickstart with GreptimePlay

Try out the features of GreptimeDB right from your browser.

Up & Running

The recommended way to install GreptimeDB is via Docker:

docker pull greptime/greptimedb

Start a GreptimeDB container with:

docker run -p 4000-4003:4000-4003 \
  -p 4242:4242 -v "$(pwd)/greptimedb:/tmp/greptimedb" \
  --name greptime --rm \
  greptime/greptimedb standalone start \
  --http-addr 0.0.0.0:4000 \
  --rpc-addr 0.0.0.0:4001 \
  --mysql-addr 0.0.0.0:4002 \
  --postgres-addr 0.0.0.0:4003 \
  --opentsdb-addr 0.0.0.0:4242

Connect to the server and test:

curl -X POST -d 'sql=SELECT 42&format=csv' http://localhost:4000/v1/sql

You should get a reply as:

42

Read more on docs:

Build

Check the prerequisite:

Build GreptimeDB binary:

make

Run a standalone server:

cargo run -- standalone start

Documentation

Extension

Dashboard

SDK

Grafana Dashboard

Our official Grafana dashboard is available at grafana directory.

Project Status

This project is in its early stage and under heavy development. We move fast and break things. Benchmark on development branch may not represent its potential performance. We release pre-built binaries constantly for functional evaluation. Do not use it in production at the moment.

For future plans, check out GreptimeDB roadmap.

Community

Our core team is thrilled to see you participate in any ways you like. When you are stuck, try to ask for help by filling an issue with a detailed description of what you were trying to do and what went wrong. If you have any questions or if you would like to get involved in our community, please check out:

In addition, you may:

License

GreptimeDB uses the Apache License 2.0 to strike a balance between open contributions and allowing you to use the software however you want.

Contributing

Please refer to contribution guidelines and internal concepts docs for more information.

Acknowledgement

Description
Languages
Rust 99.6%
Shell 0.1%