File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 1
- use std:: sync:: Arc ;
2
-
3
1
use crate :: {
4
2
errors:: err_to_napi,
5
3
types:: {
@@ -40,15 +38,6 @@ pub struct RowWrapper {
40
38
inner : Vec < Option < CqlValue > > ,
41
39
}
42
40
43
- /// Represents a single row of result from paged query
44
- #[ napi]
45
- pub struct PagedRowWrapper {
46
- // Values of the row
47
- inner : Vec < Option < CqlValue > > ,
48
- // Column names. Kept as an Arc to avoid some cloning
49
- names : Arc < Vec < String > > ,
50
- }
51
-
52
41
/// Wrapper for a single CQL value
53
42
///
54
43
/// When returned from NAPI-RS, returns either just a inner value or tuple of elements: ``(cqlType, value)``
@@ -192,25 +181,6 @@ impl From<Row> for RowWrapper {
192
181
}
193
182
}
194
183
195
- #[ napi]
196
- impl PagedRowWrapper {
197
- #[ napi]
198
- pub fn get_columns_names ( & self ) -> Vec < String > {
199
- ( * self . names ) . clone ( )
200
- }
201
-
202
- /// Get the CQL value wrappers for each column in the given row
203
- #[ napi]
204
- pub fn get_columns ( & self ) -> napi:: Result < Vec < Option < CqlValueWrapper > > > {
205
- let s: Vec < Option < CqlValueWrapper > > = self
206
- . inner
207
- . iter ( )
208
- . map ( |f| f. clone ( ) . map ( |f| CqlValueWrapper { inner : f } ) )
209
- . collect ( ) ;
210
- Ok ( s)
211
- }
212
- }
213
-
214
184
/// Converts value into tuple of elements:
215
185
/// ``(typ, value)``
216
186
/// for a given CQL Value.
You can’t perform that action at this time.
0 commit comments