File tree Expand file tree Collapse file tree 11 files changed +18
-89
lines changed Expand file tree Collapse file tree 11 files changed +18
-89
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ use databend_common_meta_app::background::UpdateBackgroundJobReply;
38
38
use databend_common_meta_app:: background:: UpdateBackgroundJobStatusReq ;
39
39
use databend_common_meta_app:: background:: UpdateBackgroundTaskReply ;
40
40
use databend_common_meta_app:: background:: UpdateBackgroundTaskReq ;
41
+ use databend_common_meta_app:: id_generator:: IdGenerator ;
41
42
use databend_common_meta_kvapi:: kvapi;
42
43
use databend_common_meta_kvapi:: kvapi:: Key ;
43
44
use databend_common_meta_kvapi:: kvapi:: UpsertKVReq ;
@@ -57,7 +58,6 @@ use crate::deserialize_struct;
57
58
use crate :: fetch_id;
58
59
use crate :: get_pb_value;
59
60
use crate :: get_u64_value;
60
- use crate :: id_generator:: IdGenerator ;
61
61
use crate :: kv_app_error:: KVAppError ;
62
62
use crate :: send_txn;
63
63
use crate :: serialize_struct;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ use databend_common_meta_app::data_mask::GetDatamaskReply;
28
28
use databend_common_meta_app:: data_mask:: GetDatamaskReq ;
29
29
use databend_common_meta_app:: data_mask:: MaskpolicyTableIdList ;
30
30
use databend_common_meta_app:: data_mask:: MaskpolicyTableIdListKey ;
31
+ use databend_common_meta_app:: id_generator:: IdGenerator ;
31
32
use databend_common_meta_app:: schema:: CreateOption ;
32
33
use databend_common_meta_app:: schema:: TableId ;
33
34
use databend_common_meta_app:: schema:: TableMeta ;
@@ -44,7 +45,6 @@ use crate::data_mask_api::DatamaskApi;
44
45
use crate :: fetch_id;
45
46
use crate :: get_pb_value;
46
47
use crate :: get_u64_value;
47
- use crate :: id_generator:: IdGenerator ;
48
48
use crate :: kv_app_error:: KVAppError ;
49
49
use crate :: send_txn;
50
50
use crate :: serialize_struct;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,22 +20,17 @@ extern crate databend_common_meta_types;
20
20
21
21
mod background_api;
22
22
mod background_api_impl;
23
- mod background_api_keys;
24
23
mod background_api_test_suite;
25
24
mod data_mask_api;
26
25
mod data_mask_api_impl;
27
- mod data_mask_api_keys;
28
- mod id_generator;
29
26
pub mod kv_app_error;
30
27
pub mod kv_pb_api;
31
28
pub mod reply;
32
29
mod schema_api;
33
30
mod schema_api_impl;
34
- mod schema_api_keys;
35
31
mod schema_api_test_suite;
36
32
mod share_api;
37
33
mod share_api_impl;
38
- mod share_api_keys;
39
34
mod share_api_test_suite;
40
35
pub ( crate ) mod testing;
41
36
pub mod txn_backoff;
@@ -46,7 +41,6 @@ pub mod crud;
46
41
pub use background_api:: BackgroundApi ;
47
42
pub use background_api_test_suite:: BackgroundApiTestSuite ;
48
43
pub use data_mask_api:: DatamaskApi ;
49
- pub use id_generator:: IdGenerator ;
50
44
pub use schema_api:: SchemaApi ;
51
45
pub ( crate ) use schema_api_impl:: get_db_or_err;
52
46
pub use schema_api_test_suite:: SchemaApiTestSuite ;
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ use databend_common_meta_app::app_error::WrongShare;
58
58
use databend_common_meta_app:: app_error:: WrongShareObject ;
59
59
use databend_common_meta_app:: data_mask:: MaskpolicyTableIdList ;
60
60
use databend_common_meta_app:: data_mask:: MaskpolicyTableIdListKey ;
61
+ use databend_common_meta_app:: id_generator:: IdGenerator ;
61
62
use databend_common_meta_app:: schema:: CatalogId ;
62
63
use databend_common_meta_app:: schema:: CatalogIdToName ;
63
64
use databend_common_meta_app:: schema:: CatalogInfo ;
@@ -243,7 +244,6 @@ use crate::util::list_tables_from_share_db;
243
244
use crate :: util:: list_tables_from_unshare_db;
244
245
use crate :: util:: mget_pb_values;
245
246
use crate :: util:: remove_table_from_share;
246
- use crate :: IdGenerator ;
247
247
use crate :: SchemaApi ;
248
248
use crate :: DEFAULT_MGET_SIZE ;
249
249
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ use databend_common_meta_app::app_error::UnknownShareAccounts;
24
24
use databend_common_meta_app:: app_error:: UnknownTable ;
25
25
use databend_common_meta_app:: app_error:: WrongShare ;
26
26
use databend_common_meta_app:: app_error:: WrongShareObject ;
27
+ use databend_common_meta_app:: id_generator:: IdGenerator ;
27
28
use databend_common_meta_app:: schema:: CreateOption ;
28
29
use databend_common_meta_app:: schema:: DBIdTableName ;
29
30
use databend_common_meta_app:: schema:: DatabaseId ;
@@ -58,7 +59,6 @@ use crate::get_share_meta_by_id_or_err;
58
59
use crate :: get_share_or_err;
59
60
use crate :: get_share_table_info;
60
61
use crate :: get_u64_value;
61
- use crate :: id_generator:: IdGenerator ;
62
62
use crate :: kv_app_error:: KVAppError ;
63
63
use crate :: list_keys;
64
64
use crate :: send_txn;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,15 +16,18 @@ use std::convert::Infallible;
16
16
17
17
use databend_common_meta_kvapi:: kvapi;
18
18
19
- use crate :: background_api_keys:: ID_GEN_BACKGROUND_JOB ;
20
- use crate :: data_mask_api_keys:: ID_GEN_DATA_MASK ;
21
- use crate :: schema_api_keys:: ID_GEN_CATALOG ;
22
- use crate :: schema_api_keys:: ID_GEN_DATABASE ;
23
- use crate :: schema_api_keys:: ID_GEN_INDEX ;
24
- use crate :: schema_api_keys:: ID_GEN_TABLE ;
25
- use crate :: schema_api_keys:: ID_GEN_TABLE_LOCK ;
26
- use crate :: share_api_keys:: ID_GEN_SHARE ;
27
- use crate :: share_api_keys:: ID_GEN_SHARE_ENDPOINT ;
19
+ pub ( crate ) const ID_GEN_TABLE : & str = "table_id" ;
20
+ pub ( crate ) const ID_GEN_DATABASE : & str = "database_id" ;
21
+ pub ( crate ) const ID_GEN_TABLE_LOCK : & str = "table_lock_id" ;
22
+ pub ( crate ) const ID_GEN_INDEX : & str = "index_id" ;
23
+
24
+ pub ( crate ) const ID_GEN_CATALOG : & str = "catalog_id" ;
25
+
26
+ pub ( crate ) const ID_GEN_SHARE : & str = "share_id" ;
27
+ pub ( crate ) const ID_GEN_SHARE_ENDPOINT : & str = "share_endpoint_id" ;
28
+
29
+ pub ( crate ) const ID_GEN_DATA_MASK : & str = "data_mask" ;
30
+ pub ( crate ) const ID_GEN_BACKGROUND_JOB : & str = "background_job" ;
28
31
29
32
/// Key for resource id generator
30
33
///
You can’t perform that action at this time.
0 commit comments