/
opt
/
canhelp
/
node_modules
/
better-auth
/
dist
/
db
/
/opt/canhelp/node_modules/better-auth/dist/db
mkdir
upload
Name
Size
Mode
Actions
adapter-base.d.mts
425
0644
edit
dl
rm
adapter-base.mjs
994
0644
edit
dl
rm
adapter-base.mjs.map
2020
0644
edit
dl
rm
adapter-kysely.d.mts
328
0644
edit
dl
rm
adapter-kysely.mjs
846
0644
edit
dl
rm
adapter-kysely.mjs.map
1501
0644
edit
dl
rm
field-converter.d.mts
444
0644
edit
dl
rm
field-converter.mjs
627
0644
edit
dl
rm
field-converter.mjs.map
1423
0644
edit
dl
rm
field.d.mts
3703
0644
edit
dl
rm
get-migration.d.mts
804
0644
edit
dl
rm
get-migration.mjs
12311
0644
edit
dl
rm
get-migration.mjs.map
26016
0644
edit
dl
rm
get-schema.d.mts
359
0644
edit
dl
rm
get-schema.mjs
996
0644
edit
dl
rm
get-schema.mjs.map
2029
0644
edit
dl
rm
index.d.mts
1215
0644
edit
dl
rm
index.mjs
1830
0644
edit
dl
rm
index.mjs.map
385
0644
edit
dl
rm
internal-adapter.d.mts
639
0644
edit
dl
rm
internal-adapter.mjs
21762
0644
edit
dl
rm
internal-adapter.mjs.map
51002
0644
edit
dl
rm
schema.d.mts
2586
0644
edit
dl
rm
schema.mjs
4983
0644
edit
dl
rm
schema.mjs.map
10377
0644
edit
dl
rm
to-zod.d.mts
1583
0644
edit
dl
rm
to-zod.mjs
865
0644
edit
dl
rm
to-zod.mjs.map
3401
0644
edit
dl
rm
verification-token-storage.mjs
1084
0644
edit
dl
rm
verification-token-storage.mjs.map
2179
0644
edit
dl
rm
with-hooks.d.mts
1730
0644
edit
dl
rm
with-hooks.mjs
7140
0644
edit
dl
rm
with-hooks.mjs.map
16287
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/better-auth/dist/db/adapter-base.mjs
(994B)
import { getAuthTables } from "@better-auth/core/db"; import { logger } from "@better-auth/core/env"; //#region src/db/adapter-base.ts async function getBaseAdapter(options, handleDirectDatabase) { let adapter; if (!options.database) { const tables = getAuthTables(options); const memoryDB = Object.keys(tables).reduce((acc, key) => { acc[key] = []; return acc; }, {}); const { memoryAdapter } = await import("@better-auth/memory-adapter"); adapter = memoryAdapter(memoryDB)(options); } else if (typeof options.database === "function") adapter = options.database(options); else adapter = await handleDirectDatabase(options); if (!adapter.transaction) { logger.warn("Adapter does not correctly implement transaction function, patching it automatically. Please update your adapter implementation."); adapter.transaction = async (cb) => { return cb(adapter); }; } return adapter; } //#endregion export { getBaseAdapter }; //# sourceMappingURL=adapter-base.mjs.map
Save
cmd:
run