farhan
farhan
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
nice tq so much @Andrew Sherman !
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
i saw it during generate
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
im using rds postgres
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
"drizzle-orm": "^0.36.0", "drizzle-kit": "^0.27.1"
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
after update the schema and has a lot of changes on orders table, then it became a problem
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
previous schema is this
import { pgEnum, pgTable as table } from "drizzle-orm/pg-core";
import * as t from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";

export const orders = table("orders", {
id: t.integer().primaryKey().generatedAlwaysAsIdentity(),
raw_body: t.json(),
raw_body_text: t.text(),
createdAt: t.timestamp().defaultNow(),
updatedAt: t.timestamp().defaultNow(),
});

export const selectOrdersSchema = createSelectSchema(orders);

export const insertOrdersSchema = createInsertSchema(orders)
.required({
raw_body: true,
raw_body_text: true,
})
.omit({
id: true,
createdAt: true,
updatedAt: true,
});
import { pgEnum, pgTable as table } from "drizzle-orm/pg-core";
import * as t from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";

export const orders = table("orders", {
id: t.integer().primaryKey().generatedAlwaysAsIdentity(),
raw_body: t.json(),
raw_body_text: t.text(),
createdAt: t.timestamp().defaultNow(),
updatedAt: t.timestamp().defaultNow(),
});

export const selectOrdersSchema = createSelectSchema(orders);

export const insertOrdersSchema = createInsertSchema(orders)
.required({
raw_body: true,
raw_body_text: true,
})
.omit({
id: true,
createdAt: true,
updatedAt: true,
});
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
@Andrew Sherman
22 replies
DTDrizzle Team
Created by Júlio on 10/31/2024 in #help
TypeError: Cannot read properties of undefined (reading 'isRLSEnabled')
having the same error,
22 replies
DTDrizzle Team
Created by farhan on 6/17/2024 in #help
PostgresError: sorry, too many clients already
yes nextjs, okay thank you for your help~
5 replies
DTDrizzle Team
Created by farhan on 6/17/2024 in #help
PostgresError: sorry, too many clients already
it happens again
5 replies
DTDrizzle Team
Created by farhan on 6/17/2024 in #help
PostgresError: sorry, too many clients already
@moderator need help
5 replies
DTDrizzle Team
Created by farhan on 4/19/2024 in #help
DRIZZLE + NEXTJS App router + Supabase Error postgres js timeout
nvm solved, Deleted node modules and bun lock reinstalling back everything resolve the issue
6 replies
DTDrizzle Team
Created by farhan on 4/19/2024 in #help
DRIZZLE + NEXTJS App router + Supabase Error postgres js timeout
import { drizzle } from "drizzle-orm/postgres-js";
import { migrate } from "drizzle-orm/postgres-js/migrator";
import postgres from "postgres";
import * as schema from "./schema"

const connectionString = process.env.DATABASE_URL!
const sql = postgres(connectionString)
export const db = drizzle(sql, {
schema
});
import { drizzle } from "drizzle-orm/postgres-js";
import { migrate } from "drizzle-orm/postgres-js/migrator";
import postgres from "postgres";
import * as schema from "./schema"

const connectionString = process.env.DATABASE_URL!
const sql = postgres(connectionString)
export const db = drizzle(sql, {
schema
});
6 replies
DTDrizzle Team
Created by farhan on 4/19/2024 in #help
DRIZZLE + NEXTJS App router + Supabase Error postgres js timeout
Also don't know which part i did wrong
6 replies
DTDrizzle Team
Created by farhan on 4/19/2024 in #help
DRIZZLE + NEXTJS App router + Supabase Error postgres js timeout
I've tried googling but couldnt find any solutions
6 replies
DTDrizzle Team
Created by farhan on 4/19/2024 in #help
DRIZZLE + NEXTJS App router + Supabase Error postgres js timeout
Error: write CONNECTION_ENDED aws-0-ap-southeast-1.pooler.supabase.com:6543
at Query.handler (webpack-internal:///(rsc)/./node_modules/postgres/src/index.js:328:74)
at Query.handle (webpack-internal:///(rsc)/./node_modules/postgres/src/query.js:145:65) {
code: 'CONNECTION_ENDED',
errno: 'CONNECTION_ENDED',
address: [ 'aws-0-ap-southeast-1.pooler.supabase.com' ],
port: [ 6543 ]
}
undefined
TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:403:12)
at errored (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:399:17)
at Socket.data (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:333:9)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:335:12)
at readableAddChunk (node:internal/streams/readable:308:9)
at Readable.push (node:internal/streams/readable:245:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
node_modules/postgres/src/connection.js (388:0) @ queryError
uncaughtException: TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:403:12)
at errored (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:399:17)
at Socket.data (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:333:9)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:335:12)
at readableAddChunk (node:internal/streams/readable:308:9)
at Readable.push (node:internal/streams/readable:245:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
Error: write CONNECTION_ENDED aws-0-ap-southeast-1.pooler.supabase.com:6543
at Query.handler (webpack-internal:///(rsc)/./node_modules/postgres/src/index.js:328:74)
at Query.handle (webpack-internal:///(rsc)/./node_modules/postgres/src/query.js:145:65) {
code: 'CONNECTION_ENDED',
errno: 'CONNECTION_ENDED',
address: [ 'aws-0-ap-southeast-1.pooler.supabase.com' ],
port: [ 6543 ]
}
undefined
TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:403:12)
at errored (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:399:17)
at Socket.data (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:333:9)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:335:12)
at readableAddChunk (node:internal/streams/readable:308:9)
at Readable.push (node:internal/streams/readable:245:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
node_modules/postgres/src/connection.js (388:0) @ queryError
uncaughtException: TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:403:12)
at errored (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:399:17)
at Socket.data (webpack-internal:///(rsc)/./node_modules/postgres/src/connection.js:333:9)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:335:12)
at readableAddChunk (node:internal/streams/readable:308:9)
at Readable.push (node:internal/streams/readable:245:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
6 replies