@@ -11,7 +11,7 @@ use crate::column::ColumnIndex;
11
11
use crate :: error:: Error ;
12
12
use crate :: ext:: ustr:: UStr ;
13
13
use crate :: row:: Row ;
14
- use crate :: sqlite:: statement:: StatementHandle ;
14
+ use crate :: sqlite:: statement:: { StatementHandle , StatementHandleRef } ;
15
15
use crate :: sqlite:: { Sqlite , SqliteColumn , SqliteValue , SqliteValueRef } ;
16
16
17
17
/// Implementation of [`Row`] for SQLite.
@@ -23,7 +23,7 @@ pub struct SqliteRow {
23
23
// IF the user drops the Row before iterating the stream (so
24
24
// nearly all of our internal stream iterators), the executor moves on; otherwise,
25
25
// it actually inflates this row with a list of owned sqlite3 values.
26
- pub ( crate ) statement : Arc < StatementHandle > ,
26
+ pub ( crate ) statement : StatementHandleRef ,
27
27
28
28
pub ( crate ) values : Arc < AtomicPtr < SqliteValue > > ,
29
29
pub ( crate ) num_values : usize ,
@@ -48,7 +48,7 @@ impl SqliteRow {
48
48
// returns a weak reference to an atomic list where the executor should inflate if its going
49
49
// to increment the statement with [step]
50
50
pub ( crate ) fn current (
51
- statement : & Arc < StatementHandle > ,
51
+ statement : StatementHandleRef ,
52
52
columns : & Arc < Vec < SqliteColumn > > ,
53
53
column_names : & Arc < HashMap < UStr , usize > > ,
54
54
) -> ( Self , Weak < AtomicPtr < SqliteValue > > ) {
@@ -57,7 +57,7 @@ impl SqliteRow {
57
57
let size = statement. column_count ( ) ;
58
58
59
59
let row = Self {
60
- statement : Arc :: clone ( statement ) ,
60
+ statement,
61
61
values,
62
62
num_values : size,
63
63
columns : Arc :: clone ( columns) ,
0 commit comments