nezumi
nezumi
PPrisma
Created by nezumi on 11/10/2024 in #help-and-questions
Nothing is written in a SQLite database when i try to insert anything
I forgot to await await prisma.test.create({ data: { skibidi: "ohio" } });
5 replies
PPrisma
Created by nezumi on 11/10/2024 in #help-and-questions
Nothing is written in a SQLite database when i try to insert anything
No description
5 replies
PPrisma
Created by nezumi on 11/9/2024 in #help-and-questions
Querying a SQLite database will just hang forever
Solved: I had to install a matching version of @prisma/client and prisma client.
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "server.ts",
"scripts": {
"compile": "npx tsc",
"start": "npm run compile && node ./dist/server.js"
},
"keywords": [],
"author": "",
"license": "0BSD",
"dependencies": {
"@prisma/client": "^5.22.0",
"express": "^4.21.1",
"node": "^22.11.0"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^15.14.9",
"prisma": "^5.22.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
}
}
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "server.ts",
"scripts": {
"compile": "npx tsc",
"start": "npm run compile && node ./dist/server.js"
},
"keywords": [],
"author": "",
"license": "0BSD",
"dependencies": {
"@prisma/client": "^5.22.0",
"express": "^4.21.1",
"node": "^22.11.0"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^15.14.9",
"prisma": "^5.22.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
}
}
5 replies
PPrisma
Created by nezumi on 11/9/2024 in #help-and-questions
Querying a SQLite database will just hang forever
const prisma = new PrismaClient();

console.log("good")
prisma.$queryRaw`SELECT * FROM User`.then(console.log); // The console.log here will never run, no promise rejection warnings either
const prisma = new PrismaClient();

console.log("good")
prisma.$queryRaw`SELECT * FROM User`.then(console.log); // The console.log here will never run, no promise rejection warnings either
5 replies