Skip to content

Commit 31cdf38

Browse files
authored
chore: unify TIdent key format (#15025)
1 parent 25dbf81 commit 31cdf38

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/meta/app/src/principal/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,31 @@
1515
//! Principal is a user or role that accesses an entity.
1616
1717
mod connection;
18-
pub mod connection_ident;
1918
mod file_format;
2019
mod network_policy;
21-
pub mod network_policy_ident;
2220
mod ownership_info;
2321
mod password_policy;
24-
pub mod password_policy_ident;
2522
mod principal_identity;
2623
mod role_ident;
2724
mod role_info;
2825
mod user_auth;
2926
mod user_defined_file_format;
30-
pub mod user_defined_file_format_ident;
3127
mod user_defined_function;
3228
mod user_grant;
3329
mod user_identity;
3430
mod user_info;
3531
mod user_privilege;
3632
mod user_quota;
3733
mod user_setting;
38-
mod user_setting_ident;
3934
mod user_stage;
4035
mod user_stage_file_ident;
41-
mod user_stage_ident;
36+
37+
pub mod connection_ident;
38+
pub mod network_policy_ident;
39+
pub mod password_policy_ident;
40+
pub mod user_defined_file_format_ident;
41+
pub mod user_setting_ident;
42+
pub mod user_stage_ident;
4243

4344
pub use connection::*;
4445
pub use file_format::*;

src/meta/app/src/principal/user_setting_ident.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
use crate::tenant_key::TIdent;
1616

1717
/// Define the meta-service key for a user setting.
18-
pub type SettingIdent = TIdent<kvapi_impl::Resource>;
18+
pub type SettingIdent = TIdent<Resource>;
19+
20+
pub use kvapi_impl::Resource;
1921

2022
mod kvapi_impl {
2123

src/meta/app/src/principal/user_stage_ident.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
use crate::tenant_key::TIdent;
1616

1717
/// Define the meta-service key for a stage.
18-
pub type StageIdent = TIdent<kvapi_impl::Resource>;
18+
pub type StageIdent = TIdent<Resource>;
19+
20+
pub use kvapi_impl::Resource;
1921

2022
mod kvapi_impl {
2123

0 commit comments

Comments
 (0)