Wolverine
Wolverine
PPrisma
Created by Wolverine on 5/3/2024 in #help-and-questions
How to Handle Case Insensitivity?
findFirst does not work with mode maybe? But why if so?
9 replies
PPrisma
Created by Wolverine on 5/3/2024 in #help-and-questions
How to Handle Case Insensitivity?
Online says that sqlite handles case insensitivity by default. But if I remove mode, case insensitivity does matter. If I add mode, I get an error.
9 replies
PPrisma
Created by Wolverine on 5/3/2024 in #help-and-questions
How to Handle Case Insensitivity?
I am using sqllite.
9 replies
PPrisma
Created by Wolverine on 5/3/2024 in #help-and-questions
How to Handle Case Insensitivity?
Unknown argument mode. Did you mean lte? Available options are marked with ?.
9 replies
PPrisma
Created by Wolverine on 5/3/2024 in #help-and-questions
How to Handle Case Insensitivity?
//Fetch a book by name, handling non-existence
async getBook(name) {
try {
return await prisma.book.findFirst({
where: {
title: {
equals: name,
mode: 'insensitive'
}
}
});
} catch (error) {
console.error("Error in getBook: ", error)
return { error };
}
}
//Fetch a book by name, handling non-existence
async getBook(name) {
try {
return await prisma.book.findFirst({
where: {
title: {
equals: name,
mode: 'insensitive'
}
}
});
} catch (error) {
console.error("Error in getBook: ", error)
return { error };
}
}
9 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
No description
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
No description
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Is Neon a relational DB?@EXILE
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Ill check the link Jon sent for SQLite then check neon out if this doesn't work
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Okay, thanks
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Do you recommend Neon over SQLite then?
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Oh neon is a database?
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Based on the project description, I think Prisma is required
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Yes this seems like the appropriate option, thanks a lot, Ill check it out!
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Also, postgres is not required. I could go based on Oracle or Sqlite instead if that is whats causing the problem.
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
No description
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
He said to use your own postgresql link, so I am not sure how to initialize my own db or get the link for this
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
I mean this is all I am trying to do. In the video, he skipped the step for how to obtain this DATABASE_URL
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
No description
41 replies
PPrisma
Created by Wolverine on 4/10/2024 in #help-and-questions
How to Get Started with Prisma? ORM
Yes
41 replies