alka_99
alka_99
Explore posts from servers
DTDrizzle Team
Created by alka_99 on 6/22/2024 in #help
Cannot find package 'drizzle-orm' in sveltekit docker
This is solved
4 replies
DTDrizzle Team
Created by alka_99 on 6/22/2024 in #help
Cannot find package 'drizzle-orm' in sveltekit docker
4 replies
DTDrizzle Team
Created by alka_99 on 6/22/2024 in #help
Cannot find package 'drizzle-orm' in sveltekit docker
FROM node:20 AS builder

WORKDIR /app

COPY package*.json .
COPY pnpm-lock.yaml .

RUN npm i -g pnpm
RUN pnpm install

COPY . .

RUN pnpm run build
RUN pnpm prune --prod

FROM node:20 AS deployer

WORKDIR /app

COPY --from=builder /app/build build/
COPY --from=builder /app/package.json .

EXPOSE 3000

ENV NODE_ENV=production

CMD [ "node", "build" ]
FROM node:20 AS builder

WORKDIR /app

COPY package*.json .
COPY pnpm-lock.yaml .

RUN npm i -g pnpm
RUN pnpm install

COPY . .

RUN pnpm run build
RUN pnpm prune --prod

FROM node:20 AS deployer

WORKDIR /app

COPY --from=builder /app/build build/
COPY --from=builder /app/package.json .

EXPOSE 3000

ENV NODE_ENV=production

CMD [ "node", "build" ]
here is my docker config
4 replies
DTDrizzle Team
Created by alka_99 on 3/18/2024 in #help
Auto Increment custom id with prefix GRO
So in this article telling me that the best practice is not store the data directly like GRO0001 and use normal integer instead, but the problem is when we want to like full text search filter, etc
11 replies
DTDrizzle Team
Created by alka_99 on 3/18/2024 in #help
Auto Increment custom id with prefix GRO
I tried something like this before, the problem is, when i do logout from my dashboard the counter starting from GRO0001 again
11 replies
DTDrizzle Team
Created by alka_99 on 3/18/2024 in #help
Auto Increment custom id with prefix GRO
let me try
11 replies
DTDrizzle Team
Created by alka_99 on 3/18/2024 in #help
Auto Increment custom id with prefix GRO
trigger and functions from the supabase itself right? @Mykhailo ?
11 replies
DTDrizzle Team
Created by alka_99 on 3/18/2024 in #help
Auto Increment custom id with prefix GRO
Bump
11 replies
DTDrizzle Team
Created by alka_99 on 3/18/2024 in #help
Auto Increment custom id with prefix GRO
right now i'm trying to use custom_property_id: text('custom_property_id').default(GRO${String(Math.floor(Math.random() * 10000)).padStart(4, '0')}), but sometime same id is created especially when there is action from 2 different people.
11 replies
DTDrizzle Team
Created by alka_99 on 2/10/2024 in #help
Cant query with relation using query method
Just realized that in the schema.ts im using roon_type for the name, and i should use property instead This is solved
6 replies
DTDrizzle Team
Created by alka_99 on 2/10/2024 in #help
Cant query with relation using query method
No description
6 replies
DTDrizzle Team
Created by alka_99 on 2/8/2024 in #help
TypeError: db.update(...).values is not a function
sorry i just realized it, for update i should use .set instead of .value
2 replies
DTDrizzle Team
Created by alka_99 on 2/6/2024 in #help
TypeError: client.unsafe is not a function
Anyone tried this?
2 replies
DTDrizzle Team
Created by alka_99 on 2/4/2024 in #help
migration:pg is not adding my new table
sorry silly mistake, i forget to add export before the const for each table
3 replies
DTDrizzle Team
Created by alka_99 on 2/4/2024 in #help
migration:pg is not adding my new table
3 replies
DTDrizzle Team
Created by alka_99 on 1/26/2024 in #help
How to access multiple relations in query
now everything working perfectly
6 replies
DTDrizzle Team
Created by alka_99 on 1/26/2024 in #help
How to access multiple relations in query
thank you for helping me
6 replies
DTDrizzle Team
Created by alka_99 on 1/26/2024 in #help
How to access multiple relations in query
yep, i just realized that
6 replies
DTDrizzle Team
Created by alka_99 on 1/26/2024 in #help
How to access multiple relations in query
6 replies