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: cockroachdb.rs
    path of file: ./repos/prisma-engines/query-engine/connector-test-kit-rs/qe-setup/src
    
    the code of the file until where you have to start completion: use once_cell::sync::OnceCell;
use quaint::{connector::PostgresFlavour, prelude::*, single::Quaint};
use schema_core::schema_connector::{ConnectorError, ConnectorResult};
use url::Url;

pub(crate) async fn cockroach_setup(url: String, prisma_schema: &str) -> ConnectorResult<()> {
    let mut parsed_url = Url::parse(&url).map_err(ConnectorError::url
    
fn drop_db_when_thread_exits(admin_url: Url, db_name: &str) {
    use std::{cell::RefCell, sync::mpsc, thread};
    use test_setup::runtime::run_with_thread_local_runtime as tok;

    // === Dramatis Person√¶ ===

    // DB_DROP_THREAD: A thread that drops databases.
    static DB_DROP_THREAD: OnceCell<mpsc::SyncSender<String>> = OnceCell::new();

    let sender = DB_DROP_THREAD.get_or_init(|| {
        let (sender, receiver) = mpsc::sync_channel::<String>(4096);

        thread::spawn(move || {
            let mut admin_url = admin_url;
            let conn = tok(create_admin_conn(&mut admin_url)).unwrap();

            // Receive new databases to drop.
            for msg in receiver.iter() {
                tok(conn.raw_cmd(&msg)).unwrap();
            }
        });

        sender
    });

    // NOTIFIER: a thread local that notifies DB_DROP_THREAD when dropped.
    struct Notifier(String, mpsc::SyncSender<String>);

    impl Drop for Notifier {
        fn drop(&mut self) {
            let message = std::mem::take(&mut self.0);

            self.1.send(message).unwrap();
        }
    }

    thread_local! {
        static NOTIFIER: RefCell<Option<Notifier>> = const { RefCell::new(None) };
    }

    NOTIFIER.with(move |cell| {
        *cell.borrow_mut() = Some(Notifier(format!("DROP DATABASE \"{db_name}\""), sender.clone()));
    });
}