mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 04:19:20 +00:00
chore: update transaction default value comment (#5223)
This commit is contained in:
@@ -66,7 +66,7 @@ export interface DrizzleAdapterConfig {
|
|||||||
*
|
*
|
||||||
* If the database doesn't support transactions,
|
* If the database doesn't support transactions,
|
||||||
* set this to `false` and operations will be executed sequentially.
|
* set this to `false` and operations will be executed sequentially.
|
||||||
* @default true
|
* @default false
|
||||||
*/
|
*/
|
||||||
transaction?: boolean;
|
transaction?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ interface KyselyAdapterConfig {
|
|||||||
*
|
*
|
||||||
* If the database doesn't support transactions,
|
* If the database doesn't support transactions,
|
||||||
* set this to `false` and operations will be executed sequentially.
|
* set this to `false` and operations will be executed sequentially.
|
||||||
* @default true
|
* @default false
|
||||||
*/
|
*/
|
||||||
transaction?: boolean;
|
transaction?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export interface MongoDBAdapterConfig {
|
|||||||
*
|
*
|
||||||
* If the database doesn't support transactions,
|
* If the database doesn't support transactions,
|
||||||
* set this to `false` and operations will be executed sequentially.
|
* set this to `false` and operations will be executed sequentially.
|
||||||
* @default true
|
* @default false
|
||||||
*/
|
*/
|
||||||
transaction?: boolean;
|
transaction?: boolean;
|
||||||
}
|
}
|
||||||
@@ -283,7 +283,7 @@ export const mongodbAdapter = (db: Db, config?: MongoDBAdapterConfig) => {
|
|||||||
},
|
},
|
||||||
supportsNumericIds: false,
|
supportsNumericIds: false,
|
||||||
transaction:
|
transaction:
|
||||||
config?.client && (config?.transaction ?? false)
|
config?.client && (config?.transaction ?? true)
|
||||||
? async (cb) => {
|
? async (cb) => {
|
||||||
if (!config.client) {
|
if (!config.client) {
|
||||||
return cb(lazyAdapter!(lazyOptions!));
|
return cb(lazyAdapter!(lazyOptions!));
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export interface PrismaConfig {
|
|||||||
*
|
*
|
||||||
* If the database doesn't support transactions,
|
* If the database doesn't support transactions,
|
||||||
* set this to `false` and operations will be executed sequentially.
|
* set this to `false` and operations will be executed sequentially.
|
||||||
* @default true
|
* @default false
|
||||||
*/
|
*/
|
||||||
transaction?: boolean;
|
transaction?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user