Skip to content

Commit

Permalink
chore: change table name
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 committed Sep 23, 2024
1 parent b07ec74 commit a9fe67c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docker run --rm -p 4000-4003:4000-4003 \
- [table](table/README.md)
- [object](object/README.md)
- [healthcheck](healthcheck/README.md)
- [hint](hint/README.md)
- [hints](hints/README.md)

## Query

Expand Down
8 changes: 4 additions & 4 deletions examples/hint/README.md → examples/hints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go run main.go
Output:

```log
2024/09/24 01:16:03 create table, name: 'monitor_table_with_hint'
2024/09/24 01:16:03 create table, name: 'monitor_table_with_hints'
2024/09/24 01:16:03 affected rows: 3
```

Expand All @@ -20,7 +20,7 @@ Your can using [MySQL Client](https://docs.greptime.com/user-guide/protocols/mys
```shell
$ mysql -h 127.0.0.1 -P 4002 public

mysql> select * from monitor_table_with_hint;
mysql> select * from monitor_table_with_hints;
+------+-------+-------------+----------------------------+
| id | host | temperature | timestamp |
+------+-------+-------------+----------------------------+
Expand All @@ -34,11 +34,11 @@ mysql> select * from monitor_table_with_hint;
You can view hints using `show create table` command:
```mysql
mysql> show create table monitor_table_with_hint;
mysql> show create table monitor_table_with_hints;
+------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| monitor_table_with_hint | CREATE TABLE IF NOT EXISTS `monitor_table_with_hint` (
| monitor_table_with_hints | CREATE TABLE IF NOT EXISTS `monitor_table_with_hints` (
`id` BIGINT NULL,
`host` STRING NULL,
`temperature` DOUBLE NULL,
Expand Down
2 changes: 1 addition & 1 deletion examples/hint/main.go → examples/hints/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func initData() []*table.Table {
time2 := time.Now()
time3 := time.Now()

itbl, err := table.New("monitor_table_with_hint")
itbl, err := table.New("monitor_table_with_hints")
if err != nil {
log.Println(err)
return nil
Expand Down

0 comments on commit a9fe67c

Please sign in to comment.