diff options
Diffstat (limited to 'shell_scripts/useful_commands.sh')
| -rw-r--r-- | shell_scripts/useful_commands.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/shell_scripts/useful_commands.sh b/shell_scripts/useful_commands.sh deleted file mode 100644 index 503794a1..00000000 --- a/shell_scripts/useful_commands.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -doas su postgres -# In this project we only use the ``opendc'' database. -psql -d opendc - -# Queries -# Selects everything from the topic which Kafka writes to. -SELECT * FROM postgres_topic; - -# Redis CLI -# Connect to Redis -redis-cli -h localhost -p 6379 -# Very useful tutorial https://redis.io/docs/latest/develop/data-types/streams/ -# https://redis.io/docs/latest/develop/tools/cli/ -# Returns all items in the Redis stream -XRANGE postgres_topic - + -XTRIM postgres_topic MAXLEN 0 -# https://codesignal.com/learn/courses/mastering-redis-for-high-performance-applications-with-java-and-jedis-1/lessons/redis-streams-with-java -# -# Creating a group for consumers to read from stream -XGROUP CREATE mystream mygroup 0 -# This is to periodically get updates from the server. -# https://medium.com/@manoel.al.amaro/understand-kotlin-flow-coroutines-by-implementing-server-side-sent-sse-9e190ff5f24f - |
