bun
Explore posts from serversDTDrizzle Team
•Created by bun on 4/1/2024 in #help
dates in sqlite not being evaluated, causing "Invalid Date"
I have the following columns in my sqlite table,
for some reason the
expiresAt
column works fine, when being read, its being evaluated as an actual date, and is saved in the database as an UNIX timestamp,
however, the createdAt column is being saved as an actual ISO string date, but upon quering it shows INVALID DATE
, why is it?4 replies
KKysely
•Created by bun on 8/30/2023 in #query-showcase
how to sort `db.updateTable` returning values?
why cant i
.orderBy("id", "asc")
?7 replies
What's the pattern for writing migrations exactly?
I'm not familiar with SQL migrations, so my question is how do we create the migration files, what rules should it follow ? As seen in the
kysely
's GitHub repo example, the migration files have dates, but those files aren't generated, so where did the dates come from ?
Well, let's say I don't want the migration files to have dates then I just create separate files for migrations and name them whatever? Ok, then how do I run them? Do I run them everytime the program starts ? Just help me out here, the docs doesn't mention anything about migrations I think it just assumes you are familiar with them already..16 replies
CDCloudflare Developers
•Created by bun on 6/11/2023 in #general-help
can't install wrangler CLI, node gyp error on macos
I'm doing
npm i -g wrangler
running macos 13, node v18
I'm getting this error1 replies