John Smeeth
06/03/2022, 1:12 AMwhere year=x and month=y and date=z
from DateTime field eg 2022-06-03 13:10:03
thank yousGelo
06/03/2022, 3:49 AMLucas
06/03/2022, 3:56 AMdelivery_date Datetime @db.Date
and also delivery_date Datetime @db.Date()
but prisma is still creating the field as a DateTime.Charlie Lee
06/03/2022, 5:13 AMYashua Pervez
06/03/2022, 7:16 AMBlas Oronoz
06/03/2022, 7:27 AMuser
06/03/2022, 9:50 AMNick
06/03/2022, 9:58 AMMike Chalmers
06/03/2022, 11:50 AMAmit
06/03/2022, 1:24 PMyarn redwood prisma db pull
Error logs
Prisma schema loaded from api/db/schema.prisma
Environment variables loaded from .env
Datasource “db”: PostgreSQL database “postgres”, schema “public” at “db.dymhsbaxmnfzfkmatyeb.supabase.co:5432"
✖️ Introspecting based on datasource defined in api/db/schema.prisma
Oops, an unexpected error occured!
[libs/sql-schema-describer/src/postgres.rs103928] no entry found for key
Using RedwoodJS, and supabase DB…alex
06/03/2022, 1:55 PM{
// ...
options: {
// we do not know in advance what prop1 or prop2 are:
prop1: "foo",
prop2: "bar"
}
}
Is it doable using Prisma ?Sam Sokolin
06/03/2022, 3:07 PM$transaction
API. I see this example:
https://www.prisma.io/docs/guides/performance-and-optimization/prisma-client-transactions-guide#transaction-api
Where Prisma apparently makes three “delete” calls, then uses the returned promises as arguments to the $transaction
API. I’m confused how this works. Don’t the delete calls make requests to the database as soon as those lines of code are executed? How does Prisma then retroactively include them in a database transaction? Or does the $transaction
API not actually use database transactions?Everton Wingert
06/03/2022, 3:55 PMStephane Le Dorze
06/03/2022, 9:24 PMJoshua V
06/04/2022, 1:05 AMBryon Mapes
06/04/2022, 3:54 AMThe migration `my_migration_here` was modified after it was applied.
Siris
06/04/2022, 10:17 AMselect code, count(code) as invites
from table where server_id = '234'
group by code
having count(code) > 0
order by count(code) desc
Can i do this with prisma?kmenux
06/04/2022, 1:37 PMEuller Peixoto
06/04/2022, 4:58 PMid
),
KEY player_id
(player_id
,sale
)
I can only generate PRIMARY KEY 😕hayes
06/04/2022, 5:39 PMMusti
06/04/2022, 6:27 PMgustav
06/04/2022, 6:31 PMgustav
06/04/2022, 6:31 PMgustav
06/04/2022, 6:31 PMKIM SEI HOON
06/05/2022, 5:38 AMPrismaClientInitializationError: Timed out fetching a new connection from the connection pool. More info: <http://pris.ly/d/connection-pool> (Current connection pool timeout: 10, connection limit: 10)
How can I solve this problem? I think it’s a connection problem, but is it a mistake to set up the prism client? Is there anyone who uses the firebase application using Prisma2?
If there’s a better example than the picture below, please share it 🙏
I look forward to hearing from you. Thank you!🙂Ridhwaan Shakeel
06/05/2022, 8:25 AM/@prisma/client/runtime/index.js:45409
[0] throw new PrismaClientUnknownRequestError(message, this.client._clientVersion);
[0] ^
[0]
[0] PrismaClientUnknownRequestError:
[0] Invalid `prisma.post.deleteMany()` invocation in (...)
does anyone know when the deleteMany method will be supported for the SQLite connector?Geebrox
06/05/2022, 12:44 PMprisma generate
? Currently it writes to stdout something like ✔ Generated Prisma Client (3.14.0 | library)...
Aaron Waller
06/05/2022, 1:11 PMconst reports = await prisma.posts.findMany({
include:{
reports: {
orderBy: {
reason: 'asc'
}
}
}
})
the output looks like this with graphQl (see image)
How can I call groupBy inside of the query.
I want to get the top 5 reasons why the post got reportet in an desc orderface boy
06/05/2022, 1:39 PMVyrek XD
06/05/2022, 4:31 PM