Skip to content

Conversation

@dashaaaa21
Copy link

No description provided.

@crevulus crevulus self-assigned this Dec 7, 2025
Copy link

@crevulus crevulus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only two very comments this week, both of them are relatively minor. Your code and reponses are excellent. Good work!

await client.query(`
CREATE TABLE account_changes (
change_number SERIAL PRIMARY KEY,
account_number INT,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure you reference foreign keys when using a key from another table

import { Client } from 'pg';

async function main() {
const client = new Client({
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using try/catch in these functions as well as your transaction.js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants