You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tableinfo.rs
    path of file: ./repos/libsql/libsql-sqlite3/ext/crr/rs/core/src
    
    the code of the file until where you have to start completion: use crate::alloc::string::ToString;
use crate::c::crsql_ExtData;
use crate::c::crsql_fetchPragmaSchemaVersion;
use crate::c::TABLE_INFO_SCHEMA_VERSION;
use crate::pack_columns::bind_package_to_stmt;
use crate::pack_columns::ColumnValue;
use crate::stmt_cache::reset_cached_stmt;
use crate::util::Countable;
use alloc::boxed::Box;
use alloc::format;
use alloc::string::String;
use alloc::vec;
use alloc::vec::Vec;
use core::cell::Ref;
use core::cell::RefCell;
use core::ffi::c_char;
use core::ffi::c_int;
use core::ffi::c_void;
use core::mem::forget;
use num_traits::ToPrimitive;
use sqlite::sqlite3;
use sqlite::value;
use sqlite_nostd as sqlite;
use sqlite_nostd::Connection;
use sqlite_nostd::ManagedStmt;
use sqlite_nostd::Res
    
    pub fn clear_stmts(&self) -> Result<ResultCode, ResultCode> {
        // finalize all stmts
        let mut stmt = self.set_winner_clock_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.local_cl_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.col_version_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.merge_pk_only_insert_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.merge_delete_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.merge_delete_drop_clocks_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.zero_clocks_on_resurrect_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.mark_locally_deleted_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.move_non_sentinels_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.mark_locally_created_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.mark_locally_updated_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.maybe_mark_locally_reinserted_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.insert_key_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.insert_or_ignore_returning_key_stmt.try_borrow_mut()?;
        stmt.take();
        let mut stmt = self.select_key_stmt.try_borrow_mut()?;
        stmt.take();

        // primary key columns shouldn't have statements? right?
        for col in &self.non_pks {
            col.clear_stmts()?;
        }

        Ok(ResultCode::OK)
    }