Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function insertSampleData() {
];

const randomQuery = sampleQueries[Math.floor(Math.random() * sampleQueries.length)];
addSystemMessage(`Try this SQL command: ${randomQuery}`);
addSystemMessage(`📝 Execute this SQL in your database to test CDC: ${randomQuery}`);
}

function updateSampleData() {
Expand All @@ -339,7 +339,7 @@ function updateSampleData() {
];

const randomQuery = sampleQueries[Math.floor(Math.random() * sampleQueries.length)];
addSystemMessage(`Try this SQL command: ${randomQuery}`);
addSystemMessage(`📝 Execute this SQL in your database to test CDC: ${randomQuery}`);
}

function deleteSampleData() {
Expand All @@ -350,7 +350,7 @@ function deleteSampleData() {
];

const randomQuery = sampleQueries[Math.floor(Math.random() * sampleQueries.length)];
addSystemMessage(`Try this SQL command: ${randomQuery}`);
addSystemMessage(`📝 Execute this SQL in your database to test CDC: ${randomQuery}`);
}

// Utility functions
Expand Down
6 changes: 3 additions & 3 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3><i class="fas fa-comments"></i> Real-Time CDC Messages</h3>
type="text"
id="messageText"
autocomplete="off"
placeholder="Type your message or database command..."
placeholder="Type your message..."
maxlength="500"
/>
<button type="submit" class="send-button">
Expand All @@ -125,8 +125,8 @@ <h3><i class="fas fa-comments"></i> Real-Time CDC Messages</h3>
</div>
<div class="input-footer">
<div class="help-text">
<i class="fas fa-info-circle"></i>
Try: INSERT INTO super_heroes (name, secret_identity, powers) VALUES ('Batman', 'Bruce Wayne', 'intelligence, martial arts');
<i class="fas fa-lightbulb"></i>
💡 To test CDC, execute SQL commands in your database (not here). Chat is for messages only.
</div>
<div class="character-count">
<span id="char-count">0</span>/500
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
POSTGRES_DB: postgres
POSTGRES_HOST_AUTH_METHOD: md5
ports:
- "5432:5432"
- "15432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
Expand Down
Loading