@@ -5,8 +5,19 @@ use std::pin::Pin;
55use std:: rc:: Rc ;
66
77use crate :: backend_api_trait:: BackendApiTrait ;
8- use crate :: types:: label:: Label ;
9- use crate :: types:: last_webhook_update_at:: LastWebhookUpdateAt ;
8+ use crate :: types:: github_app:: GithubAppStoreMarker ;
9+ use crate :: types:: installation_access_token_row:: InstallationAccessTokenRowStoreMarker ;
10+ use crate :: types:: issue:: IssueStoreMarker ;
11+ use crate :: types:: issue_comment:: IssueCommentStoreMarker ;
12+ use crate :: types:: issue_comment_initial_sync_status:: IssueCommentsInitialSyncStatusStoreMarker ;
13+ use crate :: types:: issues_initial_sync_status:: IssuesInitialSyncStatusStoreMarker ;
14+ use crate :: types:: label:: { Label , LabelStoreMarker } ;
15+ use crate :: types:: last_webhook_update_at:: { LastWebhookUpdateAt , LastWebhookUpdateAtStoreMarker } ;
16+ use crate :: types:: license:: LicenseStoreMarker ;
17+ use crate :: types:: milestone:: MilestoneStoreMarker ;
18+ use crate :: types:: repository:: RepositoryStoreMarker ;
19+ use crate :: types:: repository_initial_sync_status:: RepositoryInitialSyncStatusStoreMarker ;
20+ use crate :: types:: user:: UserStoreMarker ;
1021use crate :: types:: {
1122 github_app:: GithubApp , installation_access_token_row:: InstallationAccessTokenRow , issue:: Issue ,
1223 issue_comment:: IssueComment , issue_comment_initial_sync_status:: IssueCommentsInitialSyncStatus ,
@@ -15,7 +26,7 @@ use crate::types::{
1526 user:: User ,
1627} ;
1728use send_wrapper:: SendWrapper ;
18- use typesafe_idb:: { StoreMarker , TypesafeDb } ;
29+ use typesafe_idb:: TypesafeDb ;
1930use url:: Url ;
2031
2132use super :: optimistic:: db:: DbWithOptimisticChanges ;
@@ -24,20 +35,40 @@ use super::websocket_updates::transport::TransportTrait;
2435use super :: DbSubscription ;
2536use super :: { error:: SyncResult , SyncEngine } ;
2637
27- pub type DbStoreMarkers = impl StoreMarker < IssueCommentsInitialSyncStatus >
28- + StoreMarker < RepositoryInitialSyncStatus >
29- + StoreMarker < IssueComment >
30- + StoreMarker < InstallationAccessTokenRow >
31- + StoreMarker < IssuesInitialSyncStatus >
32- + StoreMarker < License >
33- + StoreMarker < Label >
34- + StoreMarker < Milestone >
35- + StoreMarker < Repository >
36- + StoreMarker < GithubApp >
37- + StoreMarker < User >
38- + StoreMarker < Issue >
39- + StoreMarker < LastWebhookUpdateAt >
40- + Default ;
38+ pub type DbStoreMarkers = (
39+ RepositoryInitialSyncStatusStoreMarker ,
40+ (
41+ IssueCommentsInitialSyncStatusStoreMarker ,
42+ (
43+ LastWebhookUpdateAtStoreMarker ,
44+ (
45+ IssueCommentStoreMarker ,
46+ (
47+ InstallationAccessTokenRowStoreMarker ,
48+ (
49+ IssuesInitialSyncStatusStoreMarker ,
50+ (
51+ LabelStoreMarker ,
52+ (
53+ LicenseStoreMarker ,
54+ (
55+ MilestoneStoreMarker ,
56+ (
57+ RepositoryStoreMarker ,
58+ (
59+ GithubAppStoreMarker ,
60+ ( UserStoreMarker , ( IssueStoreMarker , ( ) ) ) ,
61+ ) ,
62+ ) ,
63+ ) ,
64+ ) ,
65+ ) ,
66+ ) ,
67+ ) ,
68+ ) ,
69+ ) ,
70+ ) ,
71+ ) ;
4172
4273impl < BackendApi : BackendApiTrait , Transport : TransportTrait , GithubApi >
4374 SyncEngine < BackendApi , Transport , GithubApi >
0 commit comments