diff --git a/docs/en/09-data-out/02-tmq.md b/docs/en/09-data-out/02-tmq.md index 1a5728d6c316677296c1537df82ae8279d65275d..d9d859c305d8c43b29e4dd2c6759f1bfdde87ddc 100644 --- a/docs/en/09-data-out/02-tmq.md +++ b/docs/en/09-data-out/02-tmq.md @@ -65,7 +65,9 @@ CREATE TOPIC topic_name [WITH META] AS DATABASE db_name; This SQL statement creates a subscription to all tables in the database. You can add the `WITH META` parameter to include schema changes in the subscription, including creating and deleting supertables; adding, deleting, and modifying columns; and creating, deleting, and modifying the tags of subtables. Consumers can determine the message type from the API. Note that this differs from Kafka. -## Program Model +## Programming Model + +To subscribe the data from a created topic, the client program needs to follow the programming model described in this section. 1. Create Consumer @@ -128,7 +130,6 @@ Will be available soon - @@ -136,6 +137,8 @@ Will be available soon Will be available soon + + Will be available soon @@ -157,7 +160,6 @@ Once a topic becomes useless, it can be deleted. You can delete topics that are no longer useful. Note that you must unsubscribe all consumers from a topic before deleting it. ```sql -/* Delete topic/ DROP TOPIC topic_name; ``` diff --git a/docs/en/09-data-out/prometheus_data.webp b/docs/en/09-data-out/prometheus_data.webp new file mode 100644 index 0000000000000000000000000000000000000000..760890656daae09b9127d52c03486ce9b2bb0913 Binary files /dev/null and b/docs/en/09-data-out/prometheus_data.webp differ diff --git a/docs/en/09-data-out/prometheus_read.webp b/docs/en/09-data-out/prometheus_read.webp new file mode 100644 index 0000000000000000000000000000000000000000..2c91aa6fb8df897effddb4bfab3d522b6975ed1a Binary files /dev/null and b/docs/en/09-data-out/prometheus_read.webp differ