nodedb-sql 0.3.0-beta.1

SQL parser, planner, and optimizer for NodeDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: Apache-2.0

/// One `WHEN <claim_name> = '<value>' SET ...` clause inside a
/// `CREATE OIDC PROVIDER` or `ALTER OIDC PROVIDER` statement.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct OidcClaimMappingClause {
    pub claim_name: String,
    pub claim_value: String,
    /// Optional default database ID to grant for matching tokens.
    pub default_database: Option<u64>,
    /// Additional database IDs accessible to matching tokens.
    pub add_databases: Vec<u64>,
    /// Role names to grant to matching tokens.
    pub add_roles: Vec<String>,
}