pub struct AdvancedDatabaseConfig {
pub default_find_many_limit: usize,
pub schema_name: Option<String>,
pub two_factor: Option<TwoFactorDatabaseConfig>,
pub sso_provider: Option<SsoProviderDatabaseConfig>,
pub sso_provider_fields: SessionFields,
pub use_number_id: bool,
pub generate_id: Option<DatabaseIdStrategy>,
}Expand description
Database-related advanced options.
Fields§
§default_find_many_limit: usizeDefault LIMIT for “find many” queries.
schema_name: Option<String>PostgreSQL namespace for every auth relation; does not change search_path.
two_factor: Option<TwoFactorDatabaseConfig>Optional physical table and column mapping for two-factor credentials.
sso_provider: Option<SsoProviderDatabaseConfig>Optional physical table and column mapping for durable SSO providers.
sso_provider_fields: SessionFieldsDeclared provider fields, including input/output policy and physical names.
use_number_id: boolUse persistent serial identifiers when no explicit generation strategy is set. Numeric invitation IDs require email verification by default.
generate_id: Option<DatabaseIdStrategy>Override the model default for every adapter-created identifier.
Implementations§
Source§impl AdvancedDatabaseConfig
impl AdvancedDatabaseConfig
pub fn serial_ids(&self) -> bool
Sourcepub fn generated_id(&self, model: &str) -> AuthResult<Option<String>>
pub fn generated_id(&self, model: &str) -> AuthResult<Option<String>>
None leaves generation to the model or the database’s serial allocator.
Trait Implementations§
Source§impl Clone for AdvancedDatabaseConfig
impl Clone for AdvancedDatabaseConfig
Source§impl Debug for AdvancedDatabaseConfig
impl Debug for AdvancedDatabaseConfig
Auto Trait Implementations§
impl !RefUnwindSafe for AdvancedDatabaseConfig
impl !UnwindSafe for AdvancedDatabaseConfig
impl Freeze for AdvancedDatabaseConfig
impl Send for AdvancedDatabaseConfig
impl Sync for AdvancedDatabaseConfig
impl Unpin for AdvancedDatabaseConfig
impl UnsafeUnpin for AdvancedDatabaseConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more