Anand
Anand
Explore posts from servers
TtRPC
Created by Anand on 9/25/2024 in #❓-help
what will happen if we do not wrap the client component with hydrate client?
So is the HydrateClient necessary? Does it provide any performance gainz?
3 replies
TtRPC
Created by Anand on 9/25/2024 in #❓-help
what will happen if we do not wrap the client component with hydrate client?
I ask this because I am able to still technically prefetch data on my ClientComponent while use suspense query
3 replies
DTDrizzle Team
Created by Anand on 11/3/2023 in #help
Postgresjs with Neon giving connnection refusal error
@Andrew Sherman
8 replies
DTDrizzle Team
Created by Anand on 11/3/2023 in #help
Postgresjs with Neon giving connnection refusal error
No description
8 replies
DTDrizzle Team
Created by Anand on 11/3/2023 in #help
Postgresjs with Neon giving connnection refusal error
I am able to generate SQL file, but not able to migrate or connect to it
8 replies
DTDrizzle Team
Created by Anand on 11/3/2023 in #help
Postgresjs with Neon giving connnection refusal error
I am currently in the web app of my turborepo (the web app is a single nextjs app router app)
8 replies
DTDrizzle Team
Created by Anand on 11/3/2023 in #help
Postgresjs with Neon giving connnection refusal error
No description
8 replies
DTDrizzle Team
Created by Anand on 11/3/2023 in #help
Postgresjs with Neon giving connnection refusal error
drizzle.config.ts
import type { Config } from "drizzle-kit";

const PGUSER = decodeURIComponent(process.env.PGUSER || "");

export default {
schema: "./db/schema.ts",
out: "./drizzle",
driver: "pg",
dbCredentials: {
host: process.env.PGHOST || "",
user: PGUSER,
password: process.env.PGPASSWORD || "",
database: process.env.PGDATABASE || "",
port: 5432,
ssl: true,
},
} satisfies Config;
import type { Config } from "drizzle-kit";

const PGUSER = decodeURIComponent(process.env.PGUSER || "");

export default {
schema: "./db/schema.ts",
out: "./drizzle",
driver: "pg",
dbCredentials: {
host: process.env.PGHOST || "",
user: PGUSER,
password: process.env.PGPASSWORD || "",
database: process.env.PGDATABASE || "",
port: 5432,
ssl: true,
},
} satisfies Config;
8 replies
DTDrizzle Team
Created by Anand on 11/3/2023 in #help
Postgresjs with Neon giving connnection refusal error
index.ts this file contains the drizzle connection logic
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

const PGUSER = decodeURIComponent(process.env.PGUSER || "");

const queryClient = postgres({
host: process.env.PGHOST || "",
user: PGUSER,
password: process.env.PGPASSWORD || "",
database: process.env.PGDATABASE || "",
port: 5432,
ssl: true,
});
const db = drizzle(queryClient);

export default db;
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

const PGUSER = decodeURIComponent(process.env.PGUSER || "");

const queryClient = postgres({
host: process.env.PGHOST || "",
user: PGUSER,
password: process.env.PGPASSWORD || "",
database: process.env.PGDATABASE || "",
port: 5432,
ssl: true,
});
const db = drizzle(queryClient);

export default db;
8 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
Thanks @Brody
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
so the solutions I have are 1. shut down the DB, 2. or upgrade to Pro plans? how would pro plan help me though? I would still be charged the same amount right ? 3. pay whatever I use...
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
ok
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
So a db will be charged for 24 *7 right? becuae it is on always?
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
ok ok. No I am new to this.
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
is it because my DB is online and has data?
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
I am just trying to understand the reason behind the SQL charge?
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
there is no confusion
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
how can I decode this? what does this mean?
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
No description
28 replies
RRailway
Created by Anand on 9/2/2023 in #✋|help
Unused Database
it is database storage that is killing me?
28 replies