File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ use thiserror::Error;
20
20
21
21
pub use b64_encode:: * ;
22
22
pub use sealed:: { SealedTableEntry , UnsealSpec } ;
23
- pub use sealer:: Sealer ;
23
+ pub use sealer:: { Sealer , UnsealedIndex } ;
24
24
pub use unsealed:: Unsealed ;
25
25
26
26
/// In order to stop indexes from exploding with indexes on large strings, cap the number of terms
Original file line number Diff line number Diff line change @@ -132,6 +132,10 @@ impl PreparedDelete {
132
132
pub fn prepared_primary_key ( & self ) -> PreparedPrimaryKey {
133
133
self . primary_key . clone ( )
134
134
}
135
+
136
+ pub fn protected_indexes ( & self ) -> & [ ( Cow < ' static , str > , IndexType ) ] {
137
+ & self . protected_indexes
138
+ }
135
139
}
136
140
137
141
impl PreparedRecord {
@@ -165,6 +169,10 @@ impl PreparedRecord {
165
169
. map ( |( key, attr) | ( key. as_str ( ) , attr) )
166
170
}
167
171
172
+ pub fn unsealed_indexes ( & self ) -> & [ UnsealedIndex ] {
173
+ & self . sealer . unsealed_indexes
174
+ }
175
+
168
176
pub fn prepare_record < R > ( record : R ) -> Result < Self , SealError >
169
177
where
170
178
R : Searchable + Identifiable ,
@@ -224,6 +232,10 @@ impl PreparedRecord {
224
232
pub fn type_name ( & self ) -> & str {
225
233
& self . sealer . type_name
226
234
}
235
+
236
+ pub fn protected_indexes ( & self ) -> & [ ( Cow < ' static , str > , IndexType ) ] {
237
+ & self . protected_indexes
238
+ }
227
239
}
228
240
229
241
impl DynamoRecordPatch {
You can’t perform that action at this time.
0 commit comments