Skip to content

Namespace reeflogic::server_admin::db C++ API Reference

Headers at a Glance

Header Classes Functions Macros
server_admin/db/oidc_row_mapping.h 0 0 0
server_admin/db/permission_query.h 1 0 0
server_admin/db/role_query.h 1 0 0
server_admin/db/tenant_query.h 1 0 0

Header server_admin/db/oidc_row_mapping.h

Free-function helpers that map OIDC DB rows to common/oidc.proto values.

Declares the shared row-mapping primitives used by every server-admin query that joins t_identity_providers with t_identity_provider_oidcs: DbTextToProtoScope and DbTextToProtoTokenMode convert the identity_provider_scope and oidc_token_mode enum text values; PopulatePublicOidcConnectionFieldsFromRow fills the secret-free fields of an oidc::v1::OidcConnection from the standard column set (issuer, audience, use_discovery, token_mode, URL overrides, introspection_client_id, fallback flags, timeouts); and MapRowToOidcProvider produces a fully formed oidc::v1::OidcProvider. The persisted introspection_client_secret is never populated by these helpers so read paths cannot accidentally surface the secret.

mapping at the first inconsistency.

Note: Unknown enum labels throw ServerAdminDbOperationError to halt

See also: common/oidc.proto, server_admin/db/tenant_query.h


Header server_admin/db/permission_query.h

Paged permission-catalog query backed by t_permission_definitions.

Declares PermissionQueryOperation, a concrete commons::BaseQueryOperation specialization that resolves SQL by the searched protobuf descriptor (permission::v1::Permission) and the common QueryMode, then maps each result row into permission::v1::PermissionQueryReply.permission. The catalog is platform-seeded and read-only from the admin command surface, so the class never participates in write transactions.

See also: common/permission.proto, server_admin/cmd/admin_permission_command_handler.h

Classes

never
Public Member Signature Description Referenced Types
explicit PermissionQueryOperation(const permission::v1::PermissionQueryRequest &request); Builds a permission query operation from the wrapper request. request: Permission query request payload. Throws: std::invalid_argument when request.query is missing or paging values are invalid. -

Header server_admin/db/role_query.h

Paged role query backed by t_roles.

Declares RoleQueryOperation, a concrete commons::BaseQueryOperation specialization that resolves SQL by the searched protobuf descriptor (role::v1::Role) and the common QueryMode, then maps each t_roles row into role::v1::RoleQueryReply.role. Read-only; write paths for role CRUD live in DbOperationUtility so they can chain row writes with grant inserts inside one pqxx::work transaction.

See also: common/role.proto, server_admin/cmd/admin_role_command_handler.h

Classes

RoleQueryOperation
Public Member Signature Description Referenced Types
explicit RoleQueryOperation(const role::v1::RoleQueryRequest &request); Builds a role query operation from the wrapper request. request: Role query request payload. Throws: std::invalid_argument when request.query is missing or paging values are invalid. -

Header server_admin/db/tenant_query.h

Paged tenant query joining t_tenants with its per-tenant OIDC binding.

Declares TenantQueryOperation, a concrete commons::BaseQueryOperation specialization that joins t_tenants with the SCOPE_TENANT row from t_identity_providers and its t_identity_provider_oidcs connection, projecting each row into tenant::v1::Tenant with the OIDC provider populated through the shared row-mapping helpers from server_admin/db/oidc_row_mapping.h. Free-text search filters on t_tenants.search_lower / t_tenants.search_tsv only — the per-tenant OIDC settings are not part of the searchable identity. The persisted introspection_client_secret is intentionally left undecrypted so the admin UI never displays it.

See also: common/tenant.proto, server_admin/cmd/admin_tenant_command_handler.h

Classes

TenantQueryOperation
Public Member Signature Description Referenced Types
explicit TenantQueryOperation(const tenant::v1::TenantQueryRequest &request); Builds a tenant query operation from the wrapper request. request: Tenant query request payload. Throws: std::invalid_argument when request.query is missing or paging values are invalid. -