You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return type of Queryable.query is declared to be Promise<any[]> but this is correct only when in SELECT query and not INSERT or DELETE or something else. When INSERT, the returned value seems to be object like follows.
atdatabases/packages/mysql/src/types/Queryable.ts
Line 10 in 66c0122
Return type of
Queryable.query
is declared to bePromise<any[]>
but this is correct only when inSELECT
query and notINSERT
orDELETE
or something else. WhenINSERT
, the returned value seems to be object like follows.I'm getting TypeScript error when reading
affectedRows
, but it actually works at runtime.Using
@databases/mysql
, but may be the same for other DBs.The text was updated successfully, but these errors were encountered: