zikk
Explore posts from serversDTDrizzle Team
•Created by zikk on 4/5/2024 in #help
How to stop drizzle-kit push from truncating every time ?
As the title says, some column changes make the query have unnecessary truncates.
Also, i have a pg
timestamp(3)
field and the push every time shows me this
You're about to change created_at column type from timestamp(3) to timestamp (3) with <x> items
2 replies
DTDrizzle Team
•Created by zikk on 4/4/2024 in #help
Create query inserts quotes for customType with push
Hey people.
So i am using PostGIS as my database, and i created a custom type for the geogrraphy point
The issue lies when i use
drizzle-kit push
, it makes a create query that puts the type inside quotations marks (which breaks the db query)
How do i make it so that it creates the DB creation query correctly ?
2 replies
Databases randomly crashing
I have two databases in two different projects with different issues:
1- i migrated a database with the migration tool, it worked without a hitch untill i changed up some variables. after that it started crashing every time after it redeploys. The issues is i rolled back to a previous version and it works fine (with the new variables supposedly)
2- I tried cloning my current DB in PG on my other project, but it went above the 5GB limit, now it crashed on every redeploy and i have no way to fix it
58 replies
TTCTheo's Typesafe Cult
•Created by zikk on 7/1/2023 in #questions
Deep react component typing
hey ts nerds, can someone help me out with this ?
When using this typing, <StyledButton.Sbutton /> works and the editor autocompletes and reads it well, but when i try <StyledButton.SButton.Arrow /> i get not help it's not working (with both methods, the one used or the one commented
the whole
alone isn't working as i wanted it, i've seen it done like that though (in the mantine
.d.ts
files on their input component)
Edit: if i declare it like this it works
This is probably due to the fact that when i install this package in another project it doesn't get styled-components typing somehow
Edit 2 : figured out the "solution", add the styling package as a peer depency so the used of the package has to install it, i don't know if better can be done though2 replies
PostgresQL eating up too much RAM
my Postgresql DB instance averages 3GB of RAM use for like 8 open connections and just a couple of requests a day. It's way too much, i noticed that because of that i've been overpaying for a while alrady.
Project ID :
e40da83a-cffa-4c89-a560-e1b51f20a45c
61 replies