1 parent
23844ae301
commit
d25b5dbe6d
268 files changed
+3684
-8861
No files matched your search
@@ -15,9 +15,7 @@ export const db = drizzle(client, { schema })
|
||||
* 别再写 `tx as unknown as typeof db` —— 那个断言把两者的差异(事务上没有
|
||||
* `$client`、`batch` 等)一并抹掉了。
|
||||
*/
|
||||
export type DbOrTx =
|
||||
| typeof db
|
||||
| Parameters<Parameters<typeof db.transaction>[0]>[0]
|
||||
export type DbOrTx = typeof db | Parameters<Parameters<typeof db.transaction>[0]>[0]
|
||||
|
||||
/**
|
||||
* 读出来的时刻统一成 ISO 8601 UTC,和写侧的 `new Date().toISOString()` 同形状。
|
||||
|
||||
Reference in new issue
Block a user