atoti_jdbc.UserContentStorageConfig(The config for storing user content in a separate database.
url: Annotated[str, AfterValidator(normalize_jdbc_url)],
*,
driver: Annotated[str | None, AfterValidator(_validate_driver)] =None,
hibernate_options: FrozenMapping[str, str] =frozendict({}),
prefix: str | None =None,
database_locks: DatabaseLocksConfig | None =None,
)
Attributes
hibernate_options
Extra options to pass to Hibernate. See AvailableSettings.driver
The Java class name of thedriver to use.
This defines Hibernate’s DRIVER option.
Inferred from url if None.
prefix
The prefix to add to all paths when reading and writing files and directories. This allows sharing the same database in multiple Atoti applications without conflicts.url
The JDBC connection string of the database. The"jdbc" scheme is optional but the database specific scheme (such as "h2") is mandatory.
For instance:
"h2:/home/user/database/file/path;USER=username;PASSWORD=passwd""postgresql://postgresql.db.server:5430/example?user=username&password=passwd"
database_locks
The config of the database level locks.Added in version 6.2.2.