feat(db-*): return database name to unsanitized config (#11913)

You can access the database name from `sanitizedConfig.db.name`. But
currently, it' not possible to access the db name from the unsanitized
config.

Plugins only have access to the unsanitized config. This change allows
db adapters to return the db name early, which will allow plugins to
conditionally initialize db-specific functionality
This commit is contained in:
Alessio Gravili
2025-03-31 12:57:17 -06:00
committed by GitHub
parent 96289bf555
commit a083d47368
5 changed files with 10 additions and 0 deletions

View File

@@ -193,6 +193,7 @@ export function sqliteAdapter(args: Args): DatabaseAdapterObj<SQLiteAdapter> {
}
return {
name: 'sqlite',
allowIDOnCreate,
defaultIDType: payloadIDType,
init: adapter,