From 57304ec091ccb0830e04e5b425c454176d6f54e2 Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Tue, 15 Nov 2022 08:22:29 +0800 Subject: [PATCH] docs: remove database creation (#500) * docs: remove database creation * docs: add project status --- README.md | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index bc8ef664853..9e808fc47e7 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@   CI   - +

@@ -91,15 +91,10 @@ about Kubernetes deployment, check our [docs](https://greptime.com/docs). mysql -h 127.0.0.1 -P 4002 ``` -2. Create a database; - ```SQL - CREATE DATABASE hello_greptime; - ``` - -3. Create table: +2. Create table: ```SQL - CREATE TABLE hello_greptime.monitor ( + CREATE TABLE monitor ( host STRING, ts TIMESTAMP, cpu DOUBLE DEFAULT 0, @@ -108,18 +103,18 @@ about Kubernetes deployment, check our [docs](https://greptime.com/docs). PRIMARY KEY(host)) ENGINE=mito WITH(regions=1); ``` -4. Insert data: +3. Insert data: ```SQL - INSERT INTO hello_greptime.monitor(host, cpu, memory, ts) VALUES ('host1', 66.6, 1024, 1660897955000); - INSERT INTO hello_greptime.monitor(host, cpu, memory, ts) VALUES ('host2', 77.7, 2048, 1660897956000); - INSERT INTO hello_greptime.monitor(host, cpu, memory, ts) VALUES ('host3', 88.8, 4096, 1660897957000); + INSERT INTO monitor(host, cpu, memory, ts) VALUES ('host1', 66.6, 1024, 1660897955000); + INSERT INTO monitor(host, cpu, memory, ts) VALUES ('host2', 77.7, 2048, 1660897956000); + INSERT INTO monitor(host, cpu, memory, ts) VALUES ('host3', 88.8, 4096, 1660897957000); ``` -5. Query data: +4. Query data: ```SQL - mysql> SELECT * FROM hello_greptime.monitor; + mysql> SELECT * FROM monitor; +-------+---------------------+------+--------+ | host | ts | cpu | memory | +-------+---------------------+------+--------+ @@ -140,7 +135,15 @@ You can always cleanup test database by removing `/tmp/greptimedb`. Docker images - [`gtctl`](https://github.com/GreptimeTeam/gtctl): the command-line tool for Kubernetes deployment -- [GreptimeDB Java Client](https://github.com/GreptimeTeam/greptimedb-client-java) +- [GreptimeDB Java + Client](https://github.com/GreptimeTeam/greptimedb-client-java) + +## 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. ## Community