Mishap with drizzle and singlestore
I was following Theos tutorial => https://www.youtube.com/watch?v=c-hKSbzooAg
And when I first tried to run the
pnpm run db:push
nothing worked!
I debugged and realised that a simple change from SINGLESTORE_HOST: z.string().url()
to SINGLESTORE_HOST: z.string()
will make it work!
And it did... But later I did some VISUAL changes, not changing anything drizzle or singlestore related running pnpm run db:push
again fails again!
Now with this:
Error: getaddrinfo ENOTFOUND svc-7ba08cfa-3e59-458b-b9ae-ae06a80aaa95-dml.aws-virginia-8.svc.singlestore.com
at createConnectionPromise (/Users/filipsmasolovs/Development/m-drive/node_modules/.pnpm/[email protected]/node_modules/mysql2/promise.js:18:31)
at connectToSingleStore (/Users/filipsmasolovs/Development/m-drive/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:66769:84)
at async singlestorePush (/Users/filipsmasolovs/Development/m-drive/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:69965:32)
at async Object.handler (/Users/filipsmasolovs/Development/m-drive/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:79159:9)
at async run (/Users/filipsmasolovs/Development/m-drive/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:78381:7) {
code: 'ENOTFOUND',
errno: -3008,
sqlState: undefined
}
What could be the reason for this error?Theo - t3․gg
YouTube
My Biggest Tutorial Ever (Build A FULL Google Drive Clone with Reac...
What a journey this one was. I thought I picked a "reasonable" task with a Google Drive clone...nope.
IMPORTANT LINKS:
UI starter - https://v0.dev/chat/google-drive-clone-ui-6jEAM0wxOgc?b=b_fFQhsfElqQi&f=0
SingleStore tutorial - https://www.singlestore.com/blog/singlestore-drizzle-integration/
CI FILE - https://github.com/t3dotgg/drive-tutorial...
13 Replies
Figured it out 🙂
My DB had an AUTO SUSPEND policy...
DBs are so FUN...
Starting to feel some very big pains trying to make the project my own. 😄
LOOKING GOOD!!!

FOLDERS... DONE!!!

The FOLDER DELETE function is getting ABSURD 😄 😄 😄
FOLDER DELETE WOOOOOOOORKS!!!!
And yeah, I mean PROPERLY work with all decendandts being both removed from DB, removed from UploadThing and UI refreshed
@theo (t3.gg) THANK YOU FOR AN AMAZING CHALLENGE!!!
Added preview support for:
image - default img tag
pdf - object tag with type="application/pdf"
video - default video tag
text/plain - iframe 😄
audio - default audio tag
Having massive amounts of fun, desperation, headache and pain at the same time with M-DRIVE....
I AM TOO PROUD OF THIS UI 🙂

In my mind this just looks GREAT

Creating a new file optimistic refresh works PERFECTLY
Deleting a file optimistic refresh works PERFECTLY
Deleting a folder optimistic refresh works PERFECTLY
Creating a new folder optimistic refresh is a PAIN IN THE ASS problem that I have been trying to solve for hours and I'm going mad... 😄
Small win, found a very FUN BEHAVIOUR between Clerk and Arc, most probably Clerks fault, but 100% is not mine as it is also reproducable on their website 😄 😄 😄
FUN FUN, JOY JOY
WORKING SEARCH...


m-hub.link
M-DRIVE
Slightly less functional, but way better looking Google Drive clone.
nice work
i have yet to go through the tutorial myself but the outcome is fire
Thank you @webdevkaleem
Really appreatiate it!